Skip to content

Commit

Permalink
Bv2.6.5 (#35)
Browse files Browse the repository at this point in the history
* refactor: soft delete

* chore: doc update;
removed: unused code

* fix: import

* feat: found bugs how to

* update: db data;
refactor: db queries

* feat: new test data

* feat: performance tools and reports

* refactor: time histogram

* feat: diagnostic routes

* refactor: games and resources

* refactor: diagnosticRoutes

* refactor: stats

* feat: more user avatars

* refactor: roi and projects ui

* feat: d3 heat map for user activity stats

* fix: activity graph

* feat: loader for Activity Histograms

* improve: Activity Histograms

* refactor: libs

* fix: creationDate and birthdate for users

* improve: Activity Histograms

* feat: table data for publications

* refactor: /stats/publish/ to /stats/publications/

* feat: diagnostic section and clean up

* fix: link

* fix: minors

* fix: request page errors

* chore: unify errors on UI

* update: errors styling

* chore: comments

* feat: projects poc

* refactor: extracted header scripts

* chore: cleanup

* poc: notifier

* feat: test for adding article without user id

* feat: messenger poc

* feat: contacts in messenger

* feat: update contacts in messenger

* feat: basic tests for messenger

* fix: style and validation

* feat: messages in messenger

* feat: messenger message interval

* feat: create message

* fix: date validation

* fix: tests

* fix: create first contact

* fix: tests

* fix: message validation and more tests

* refactor: tests

* feat: messenger minor improvements

* refactor: minor messenger
  • Loading branch information
Freudenberger committed May 23, 2024
1 parent de087f8 commit 0fa9e9e
Show file tree
Hide file tree
Showing 351 changed files with 6,559 additions and 3,125 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"issueGetLabels": "readonly",
"formatLabelElement": "readonly",
"updateLabelElements": "readonly",
"issueGetAllLabels": "readonly"
"issueGetAllLabels": "readonly",
"isAuthenticated": "readonly",
"setBoxMessage": "readonly"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.idea
uploads
.vscode
.vscode
reports
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ The application will be available at `http://localhost:3000`

### Update version

#### If You are using zip package

Steps:

1. Download zipped repository
1. Unzip and replace Your local instance of GAD
1. Run `npm i` in root directory
- to install new modules
1. Run `npm run start`
- to start GAD

#### If You are using cloned repository

Steps:

1. Open the project root directory in cmd/terminal
Expand Down Expand Up @@ -128,6 +141,11 @@ Bash:
PORT=3001 npm run start
```

Windows Cmd:
```
set PORT=3001 && npm run start
```

## Deploy to **Glitch**

No account needed - but your project will be deleted in 5 days.
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GAD",
"version": "v2.6.4",
"version": "v2.6.5",
"description": "Simple application prepared and developed only for testing purposes",
"repository": "https://github.com/jaktestowac/gad-gui-api-demo",
"keywords": ["json-server", "node", "REST API", "UI", "JavaScript", "testing"],
Expand Down
1 change: 1 addition & 0 deletions config/config-bugs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const bugConfig = {
bug_random_404_get: false,
bug_404_if_comment_created_recently: false,
bug_404_if_article_created_recently: false,
bug_delay_soft_delete_comments: false,
bug_slower_responses_100ms: false,
bug_slower_responses_500ms: false,
bug_slower_responses_1000ms: false,
Expand Down
4 changes: 3 additions & 1 deletion config/config-general.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const configToModify = {

randomErrorResponseProbability: 0.05,
minSecondsForResourceCreatedRecentlyBug: 3,
commentsSoftDeleteDelayInSecondsBug: 3,
diagnosticsEnabled: false,
};

const config = {
Expand All @@ -62,7 +64,7 @@ const config = {
hangmanDataPath: "./db/hangman-words.json",
translationsDbPath: "./data/translations/translations.json",
defaultPort: 3000,
dateRegexp: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/, // e.g. 2016-01-19T15:21:32Z
dateRegexp: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, // e.g. 2016-01-19T15:21:32Z or 2016-01-19T15:21:32.2Z or 2016-01-19T15:21:32.123Z
emailRegexp: /^\S+@\S+\.\S+$/,
userAvatarPath: "../public/data/users",
articleImagePath: "../public/data/images/256",
Expand Down
3 changes: 3 additions & 0 deletions config/enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const ConfigKeys = {
READ_ONLY: "readOnly",
RANDOM_ERROR_RESPONSE_PROBABILITY: "randomErrorResponseProbability",
MIN_SECONDS_FOR_RESOURCE_CREATED_RECENTLY_BUG: "minSecondsForResourceCreatedRecentlyBug",
COMMENTS_SOFT_DELETE_DELAY_IN_SECONDS_BUG: "commentsSoftDeleteDelayInSecondsBug",
DIAGNOSTICS_ENABLED: "diagnosticsEnabled",
};

const BugConfigKeys = {
Expand Down Expand Up @@ -108,6 +110,7 @@ const BugConfigKeys = {
BUG_DISABLE_MODULE_ARTICLES: "bug_disable_module_articles",
BUG_DISABLE_MODULE_USERS: "bug_disable_module_users",
BUG_DISABLE_MODULE_AUTH: "bug_disable_module_auth",
BUG_DELAY_SOFT_DELETE_COMMENTS: "bug_delay_soft_delete_comments",
};

const FeatureFlagConfigKeys = {
Expand Down

0 comments on commit 0fa9e9e

Please sign in to comment.