Skip to content

Commit

Permalink
Release/v0.1.8 (#461)
Browse files Browse the repository at this point in the history
* Add documentation link at models workspace

* Add colors.scss

- Define color variables
   - brand-primary
   - gray scale
   - Pure black & white
   - Accent color
   - Meaning related (Dnager, highlight
   - Theme colors
      - Gray
      - Green
      - Purple

* Update brand primary color variables

- Update it on .scss files
- Update it on .svg files

* Update color brand-primary color at react theme file

* Update brand-primary color at templateLoader.js

Not sure what's the purpose of this file but I'm updating it anyways to
keep consistency

* Use --brand-default color variabloe accross the border

This way we have more control to change all colors in a central place if
needed

* Migrate border color to color variables

- Create color variables values for borders (light, default, dark)
- Over write some Bootstrap border values

* Remove duplicated <statur-bar> element

- Also organize the bottom of each file (Keep consistency in the
  comments and spaces)

* Remove Fira Sans as default font

- Use default system font instead
   - Arguably better legibility
   - Save extra request to get fonts from Google Fonts servers

* Remove duplicated ";" from some files

* Font-color legibility + .model-properties improv

- Use color variables to improve font-legibility

.model-properties improvements:
- Increase size of clickable element to show/hide .model-properties
- Add cursor icon at the empty-state message

* Replace multiple hard coded color values

- Use variables instead
- Change .warning button color from orange to default gray
- Change validation error "red" to use --danger-default color
- Relave multiple HEX white and black and use --white --black instead

"

* Use --brand-primary-30 as default color for links

* Update BRMW logo

- Add SVG with (not that) new logo;
- Replace logo at login page
- Update favicon

* Fix typo in --black color variable

* Small padding adjustment at model-properties sidebar

* Adjust .navbar-default colors for better contrast

* Update --border-default value

* Remove old logo assets

* Bump mongodb from 4.8.1 to 4.17.0 (#451)

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 4.8.1 to 4.17.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v4.17.0/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v4.8.1...v4.17.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Idmar Ramos Jr. (Id) <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent 3a1f7b5 commit 80ebb4e
Show file tree
Hide file tree
Showing 42 changed files with 3,309 additions and 3,383 deletions.
2 changes: 1 addition & 1 deletion app/angular/components/queryExpressionModal/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.condition-label {
padding: 6px;
background: #3d9970;
background: hsl(170, 100%, 20%);
color: white;
border-radius: 4px;
margin-right: 8px;
Expand Down
3 changes: 1 addition & 2 deletions app/angular/components/statusBar/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.status-bar {
font-size: 0.9em;
font-style: italic;
font-weight: 300;
color: rgba(#000, 1);
color: var(--black);
}
11 changes: 5 additions & 6 deletions app/angular/conceptual/conceptual.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h2 class="h4">{{ 'Conceptual model of:' | translate }} {{$ctrl.model.name}}</h2
<status-bar updated-at="$ctrl.modelState.updatedAt"></status-bar>
</div>
<aside class="header-actions pull-right">
<a class="docs-icon" href="https://docs.brmodeloweb.com" target="_blank" rel="noopener noreferrer" title="{{ 'Documentation' | translate }}"><i class="fa fa-book"></i></a>
<a class="br-button" data-ng-click="$ctrl.saveModel()" title="{{ 'Save (CTRL S)' | translate }}">{{ 'Save' | translate }}</a>
</aside>
</div>
Expand All @@ -54,10 +55,8 @@ <h2 class="h4">{{ 'Conceptual model of:' | translate }} {{$ctrl.model.name}}</h2
</div>
</aside>
</header><!-- End .workspace-header -->
</section>
<sidebar-control-conceptual selected="$ctrl.selectedElement" on-update="$ctrl.onUpdate(event)"></sidebar-control-conceptual>
</section><!-- End .model-area -->
<sidebar-control-conceptual selected="$ctrl.selectedElement" on-update="$ctrl.onUpdate(event)"></sidebar-control-conceptual>
<bug-report-button></bug-report-button>
</div>
<!-- End .mainContent -->
</section>
<!-- End .view -->
</div><!-- End .mainContent -->
</section><!-- End .view -->
4 changes: 2 additions & 2 deletions app/angular/conceptual/sidebarControl.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<aside class="model-properties" data-ng-class="{'active': $ctrl.visible}">

<span class="action" data-ng-click="$ctrl.changeVisible()">
<i class="fa angle-double-icon"
data-ng-class="!$ctrl.visible ? 'fa-angle-double-left' : 'fa-angle-double-right'"></i>
<i class="fa angle-double-icon" data-ng-class="!$ctrl.visible ? 'fa-angle-double-left' : 'fa-angle-double-right'"></i>
</span>

<div class="properties-content old">

<div class="form-group" ng-if="$ctrl.configuration.emptyState">
<div class="empty-state">
<i class="fa fa-mouse-pointer" aria-hidden="true"></i>
<p>{{ 'Select an element to edit' | translate }}</p>
</div>
</div><!-- End .form-group -->
Expand Down
2 changes: 1 addition & 1 deletion app/angular/editor/editorActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ joint.ui.EditorActions = Backbone.Model.extend({
runningCommand.action = commandAction;
runningCommand.data.id = cellView.id;
runningCommand.data.type = cellView.attributes.type;
runningCommand.data.attributes = { ...cellView.toJSON() };;
runningCommand.data.attributes = { ...cellView.toJSON() };
runningCommand.options = d || {};
runningCommand.data.view = cellView;
this.saveCommand(runningCommand);
Expand Down
6 changes: 1 addition & 5 deletions app/angular/logic/logic.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ <h2 class="h4 pull-left">{{ 'Logical model of:' | translate }} {{$ctrl.model.nam
<status-bar updated-at="$ctrl.modelState.updatedAt"></status-bar>
</div>
<aside class="header-actions pull-right">
<a class="docs-icon" href="https://docs.brmodeloweb.com" target="_blank" rel="noopener noreferrer" title="{{ 'Documentation' | translate }}"><i class="fa fa-book"></i></a>
<a class="br-button" data-ng-click="$ctrl.saveModel()" title="{{ 'Save (CTRL S)' | translate }}">{{ 'Save' | translate }}</a>
</aside>
</div>
Expand All @@ -52,12 +53,7 @@ <h2 class="h4 pull-left">{{ 'Logical model of:' | translate }} {{$ctrl.model.nam
</aside>
</header><!-- End .workspace-header -->
</section><!-- End .model-area -->

<sidebar-control-logical selected="$ctrl.selectedElement" show-feedback="$ctrl.showFeedback"></sidebar-control-logical>

<status-bar updated-at="$ctrl.modelState.updatedAt"></status-bar>

<bug-report-button></bug-report-button>

</section><!-- End .mainContent -->
</section><!-- End .view -->
1 change: 1 addition & 0 deletions app/angular/logic/sidebarControl.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<div class="properties-content old" ng-if="$ctrl.selectedElement == null">
<div class="form-group">
<div class="empty-state">
<i class="fa fa-mouse-pointer" aria-hidden="true"></i>
<p>{{ 'Select an element to edit' | translate }}</p>
</div>
</div><!-- End .form-group -->
Expand Down
2 changes: 1 addition & 1 deletion app/angular/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/>
<section class="login-page">
<header class="public-logo">
<img src="../../img/brmodelo-logo-square.svg" alt="BR Modelo Web logo" height="42" width="42" />
<img src="../../img/brmw-logo.svg" alt="BR Modelo Web logo" height="42" width="42" />
<h1>BR Modelo Web</h1>
</header>
<div class="alert alert-danger" role="alert" data-ng-class="{'hide': !$ctrl.feedback.showing}">
Expand Down
4 changes: 2 additions & 2 deletions app/angular/preferences/preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2 class="h2 pull-left">{{ 'Preferences' | translate }}</h2>

<!-- User information -->
<form class="form-horizontal" role="form" name="userPreferencesForm">

<section class="form-section deleteAccount">
<header>
<h3>{{ 'Delete account' | translate }}</h3>
Expand All @@ -46,7 +46,7 @@ <h3>{{ 'Delete account' | translate }}</h3>
</section>

</form>
</div><!-- End .container.projectsList -->
</div><!-- End .container -->

<bug-report-button></bug-report-button>
</section><!-- End .mainContent -->
Expand Down
Binary file removed app/favicon.ico
Binary file not shown.
Binary file removed app/img/brlogo.png
Binary file not shown.
1 change: 0 additions & 1 deletion app/img/brmodelo-logo-round.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/img/brmodelo-logo-square.svg

This file was deleted.

1 change: 1 addition & 0 deletions app/img/brmw-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/img/wave01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/img/wave02.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/img/wave03.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
<head lang="en">
<meta charset="UTF-8">
<title ng-bind="title">brModeloWeb</title>
<!-- Custom Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" />

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NQ9Z9PV306"></script>
Expand Down
2 changes: 1 addition & 1 deletion app/joint/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ erd.InfoButton = joint.linkTools.InfoButton = joint.linkTools.Button.extend({
distance: 40,
offset: 0,
action: function(evt) {
this.notify('link:options', evt, this.sourceView, this.sourceMagnet, 'source');;
this.notify('link:options', evt, this.sourceView, this.sourceMagnet, 'source');
}
}
});
Expand Down
12 changes: 6 additions & 6 deletions app/joint/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ uml.Class = joint.shapes.basic.Generic.extend({

'.uml-class-name-text': {
'ref': '.uml-class-name-rect', 'ref-y': .5, 'ref-x': .5, 'text-anchor': 'middle', 'y-alignment': 'middle', 'font-weight': 'bold',
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
},
'.uml-class-attrs-text': {
'ref': '.uml-class-attrs-rect', 'ref-y': 5, 'ref-x': 5,
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
},
'.uml-class-methods-text': {
'ref': '.uml-class-methods-rect', 'ref-y': 5, 'ref-x': 5,
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
}
},

Expand Down Expand Up @@ -147,15 +147,15 @@ uml.Abstract = joint.shapes.basic.Generic.extend({

'.uml-class-name-text': {
'ref': '.uml-class-name-rect', 'ref-y': .5, 'ref-x': .5, 'text-anchor': 'middle', 'y-alignment': 'middle', 'font-weight': 'bold',
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
},
'.uml-class-attrs-text': {
'ref': '.uml-class-attrs-rect', 'ref-y': 5, 'ref-x': 5,
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
},
'.uml-class-methods-text': {
'ref': '.uml-class-methods-rect', 'ref-y': 5, 'ref-x': 5,
'fill': 'black', 'font-size': 12, 'font-family': 'Fira Sans'
'fill': 'black', 'font-size': 12, 'font-family': 'BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif'
}
},

Expand Down
10 changes: 5 additions & 5 deletions app/react/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const theme = {
colors: {
primary: {
500: "#3d9970",
500: "hsl(170, 100%, 30%)",
},
secondary: {
500: "#dd7c58",
500: "hsl(170, 100%, 40%)",
},
gray: {
100: "#f8f8f8",
100: "hsl(0, 0%, 10%",
},
white: "#fff",
black: "#000",
white: "hsl(0, 0%, 100%)",
black: "hsl(0, 0, 0)",
},
shadows: {
default: "0 0 20px rgb(0, 0, 0, 0.1)",
Expand Down
1 change: 1 addition & 0 deletions app/sass/app.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'colors.scss';
@import 'public.scss';
@import 'mainHeader.scss';
@import 'structure.scss';
Expand Down
38 changes: 19 additions & 19 deletions app/sass/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
cursor: pointer;
font-size: 1em;
padding: 4px 8px;
border: 1px solid #3d9970;
border: 1px solid var(--brand-primary-30);
border-radius: 2px;
margin: 0 4px 0 0;
color: #3D9970;
color: var(--brand-primary-30);
font-weight: 400;
text-transform: uppercase;
background-color: transparent;
Expand All @@ -21,29 +21,29 @@
}

.br-button:hover {
color: #fff;
background: #3d9970;
color: var(--white);
background: var(--brand-primary-30);
text-decoration: none;
}

.br-button.warning {
border-color: #f58056;
color: #f58056;
border-color: var(--gray-20);
color: var(--gray-20);
}

.br-button.warning:hover {
background: #f58056;
color: #fff;
background: var(--gray-30);
color: var(--white);
}

.br-button.destructive {
border-color: #af1010;
color: #af1010;
border-color: var(--danger-base);
color: var(--danger-base);
}

.br-button.destructive:hover {
background: #af1010;
color: #fff;
background: var(--danger-base);
color: var(--white);
}

.br-button.btn-disable {
Expand All @@ -57,28 +57,28 @@
// .btn-alt
////////////////////////////////////////////////////////////////////////////////
.btn-alt {
background-color: #3d9970;
color: #fff;
background-color: var(--brand-default);
color: var(--white);
text-transform: none;
}

.btn-alt:hover {
background-color: transparent;
color: #3d9970;
color: var(--brand-default);
}

////////////////////////////////////////////////////////////////////////////////
// .btn-alt
////////////////////////////////////////////////////////////////////////////////
.btn-alt {
background-color: #3d9970;
color: #fff;
background-color: var(--brand-default);
color: var(--white);
text-transform: none;
}

.btn-alt:hover {
background-color: transparent;
color: #3d9970;
color: var(--brand-default);
}

////////////////////////////////////////////////////////////////////////////////
Expand All @@ -100,7 +100,7 @@
}

.br-help:visited {
color: #3d9970;
color: var(--brand-default);
}

.br-help:hover {
Expand Down
Loading

0 comments on commit 80ebb4e

Please sign in to comment.