Skip to content

Commit 539e0e2

Browse files
miltonbsndependabot[bot]idmarjrjoaomfiumari
authored
Release/v0.1.5 (#396)
* Fix redirect unix socket vulnerability * Force https only on production mode * Upgrade jointJs * Remove transitive imports * Upgrade database dependencies * Upgrade express * Bump terser from 5.10.0 to 5.14.2 Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/commits) --- updated-dependencies: - dependency-name: terser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Update yarn packages * Update issue templates - Change issue template - Translate it's contents to pt-br * Update issue templates - Fix typo - Add separators * Improve login security * Improve register security * Improve reset password security * Hide user from recovery request * Short reuse refac * feat(config): Update Dockerfile and docker-compose * Bump loader-utils from 2.0.2 to 2.0.3 Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump minimatch from 3.0.4 to 3.1.2 Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. - [Release notes](https://github.com/isaacs/minimatch/releases) - [Commits](isaacs/minimatch@v3.0.4...v3.1.2) --- updated-dependencies: - dependency-name: minimatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump loader-utils from 2.0.3 to 2.0.4 Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.3...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump qs from 6.5.2 to 6.5.3 Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.5.2...v6.5.3) --- updated-dependencies: - dependency-name: qs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Create delete account rounte * WIP: Add Preferences page * Preferences page - Enable translations, - Add missing array when exporting app.preferences * User preferences page markup Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Idmar Ramos Jr. (Id) <idmarjr@gmail.com> Co-authored-by: João Paulo M Fiumari <joaopaulo_mf@outlook.com>
1 parent 84a8c04 commit 539e0e2

30 files changed

+2868
-2317
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
API_URL=http://localhost:3000
22
PORT=3000
3-
MONGODB_LOCAL_URL="mongodb://localhost:27017/brmodeloDB"
3+
MONGODB_LOCAL_URL="mongodb://mongo:27017/brmodeloDB"
44
SECRET_TOKEN=talkischeapshowmethecode

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Eu preciso de ajuda com...
3+
about: Para qualquer pergunta que você tenha
4+
title: ''
5+
labels: Question
6+
assignees: ''
7+
8+
---
9+
10+
> Antes de fazer sua pergunta, por favor explore a documentação do BRModelo Web:
11+
> https://docs.brmodeloweb.com
12+
>
13+
> Se mesmo assim você não encontrou a resposta que precisa, adicione sua pergunta a seguir:
14+
15+
---
16+
17+
### Pergunta
18+
Adicione aqui sua pergunta

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/i-need-help-with---.md

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Reportar Problema
3+
about: Reportar bugs no BRMW
4+
title: ''
5+
labels: Bug
6+
assignees: ''
7+
8+
---
9+
10+
### Link da modelagem
11+
Adicione aqui o link da modelagem na qual você estava trabalhando quando encontrou o problema.
12+
13+
---
14+
15+
### Descreva o problema
16+
Adicione aqui uma breve descrição do problema.
17+
18+
---
19+
20+
### Passos para reproduzir
21+
1. Na tela de...
22+
1. Selecione a opção...
23+
1. Clique em...
24+
25+
---
26+
27+
### Screenshots e/ou video
28+
Adicione aqui imagens ou videos que possam nos ajudar a entender o problema
29+
30+
---
31+
32+
### Sistema operacional e navegador
33+
- Adicione aqui seu sistema operacional (Windows, MacOS, Linux distro, etc...)
34+
- Adicione aqui seu navegador (Firefox, Chrome, Edge, etc) e a versão do mesmo
35+
36+
---
37+
38+
### Informações extras
39+
Aqui você pode adicionar qualquer informação extra que ache relevante pra nos ajudar a entender o problema.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Requisitar funcionalidade
3+
about: Ideias e sugestões de como melhorar o BRMW
4+
title: ''
5+
labels: Feature request
6+
assignees: ''
7+
8+
---
9+
10+
### Sua sugestão de melhoria é relacionada a algum problema?
11+
12+
Adicione aqui a descrição do problema
13+
_Ex: É muito complicado fazer..._
14+
15+
---
16+
17+
### Descreva sua ideia de como resolver o problema
18+
Adicione aqui como você acha que deveríamos resolver esse problema.
19+
Fique a vontade para adicionar imagens, videos, desenhos ou qualquer material que te ajude a explicar sua proposta de solução
20+
21+
---
22+
23+
### Informações extras
24+
Aqui você pode adicionar qualquer informação extra que ache relevante pra nos ajudar a entender o problema.

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
FROM node:16
1+
FROM node:16-alpine
22
RUN mkdir -p /usr/src/app
3-
WORKDIR /usr/src/app
4-
COPY package.json /usr/src/app/
3+
ENV APP_PATH /usr/src/app
4+
COPY package.json $APP_PATH
5+
WORKDIR $APP_PATH
56
RUN yarn install
6-
COPY . /usr/src/app
7-
EXPOSE 9000
8-
CMD [ "yarn", "start:frontend", "yarn" , "start:dev" ]
7+
COPY . $APP_PATH
8+
# expose port 3000 for server and 9000 for webpack-dev-server
9+
EXPOSE 3000 9000
10+
# run start:frontend and start:dev in parallel
11+
CMD ["yarn", "start:frontend", "start:dev"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ To run this application you'll need:
2626
1. Start server: `yarn start:dev`
2727
1. Access it: [http://localhost:9000/](http://localhost:9000/)
2828

29-
## Running with Docker
29+
## Running with docker-compose
3030

3131
> **Note:** Docker setup is still a work in progress and does not offer a good developer experience. For now we recommend you to run the project locally following the instructions listed above. If you still want to use docker, here's how:
3232
3333
1. Make sure you have [Docker Desktop](https://www.docker.com/get-started) running
34-
1. Start docker: `docker-compose up`
34+
1. Start docker: `docker-compose up` or `docker-compose up -d`
3535
1. Access it: [http://localhost:9000/](http://localhost:9000/)
3636
1. Once your done, finish docker: `docker-compose down`
3737

app/angular/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,21 @@ app.config([
186186
},
187187
});
188188

189+
$stateProvider.state("preferences", {
190+
title: "Preferences - BRMW",
191+
url: "/preferences",
192+
component: "preferences",
193+
data: {
194+
requireLogin: true,
195+
},
196+
lazyLoad($transition$) {
197+
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
198+
return import("./preferences/preferences.js").then((mod) =>
199+
$ocLazyLoad.inject(mod.default)
200+
);
201+
},
202+
});
203+
189204
$urlRouterProvider.otherwise("/");
190205
},
191206
]);
@@ -211,4 +226,5 @@ app.config(function () {
211226
};
212227
});
213228

214-
app.$inject = ["$scope", "$http", "$cookies", "$uibModalInstance"];
229+
app.$inject = ["$scope", "$http", "$cookies", "$uibModalInstance"];
230+

0 commit comments

Comments
 (0)