Skip to content

Commit

Permalink
Merge unrelated histories: develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin authored and Robin committed Nov 21, 2023
2 parents 6e5eeaf + a096666 commit a1ab8a6
Show file tree
Hide file tree
Showing 1,517 changed files with 892,513 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": ["@babel/react", "@babel/env"],
"plugins": [
["@babel/plugin-proposal-decorators", {
"loose": true,
"decoratorsBeforeExport": true
}],
["@babel/plugin-proposal-class-properties", { "loose": false }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
]
}
134 changes: 134 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
version: 2.1
orbs:
coverage-reporter: codacy/[email protected]

executors:
docker-executor:
docker:
- image: circleci/node:16-stretch
working_directory: ~/trudesk

commands:
yarninstall:
steps:
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --immutable
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/trudesk/.yarn/cache

jobs:
build_general:
docker:
- image: circleci/node:16-stretch
- image: mongo:5.0
working_directory: ~/trudesk
steps:
- checkout
- yarninstall
- run:
name: Run Tests
command: yarn run test
- run:
name: Run Build
command: yarn run build
build_docker_next:
executor: docker-executor
steps:
- checkout
- setup_remote_docker
- run:
name: Build Docker Image
command: |
docker build -t polonel/trudesk:next .
- run:
name: Push Docker Image (next)
command: |
echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin
docker push polonel/trudesk:next
build_develop:
docker:
- image: circleci/node:16-stretch
- image: mongo:5.0
working_directory: ~/trudesk
resource_class: medium+
steps:
- checkout
- yarninstall
- run:
name: Run Tests
command: yarn run test
- run:
name: Run Build
command: yarn run build
- run:
name: Run Codacy
command: yarn run coverage
- coverage-reporter/send_report:
coverage-reports: './coverage/lcov.info'
project-token: $CODACY_PROJECT_TOKEN
parallelism: 2
build_production:
docker:
- image: circleci/node:16-stretch
- image: mongo:5.0
working_directory: ~/trudesk
resource_class: large
steps:
- checkout
- run:
name: Install npx
command: sudo npm i -g npx --force
- yarninstall
- run:
name: Run Tests
command: yarn run test
- run:
name: Run Codacy
command: yarn run coverage
- coverage-reporter/send_report:
coverage-reports: './coverage/lcov.info'
project-token: $CODACY_PROJECT_TOKEN
- run:
name: Semantic Release
command: npx semantic-release
parallelism: 2

workflows:
version: 2.1
general:
jobs:
- build_general:
filters:
branches:
ignore:
- develop
- master
#nightly:
# triggers:
# - schedule:
# cron: "0 0 * * *"
# filters:
# branches:
# only: develop
# jobs:
# - build_docker_next
develop:
jobs:
- build_develop:
filters:
branches:
only: develop
production:
jobs:
- build_production:
filters:
branches:
only: master
16 changes: 16 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
exclude_paths:
- mobile/**
- logs/**
- docs/**
- src/public/css/**
- src/public/css/**/*
- src/public/js/plugins/**
- src/public/js/plugins/**/*
- src/public/js/vendor/**
- src/public/js/vendor/**/*
- public/**
- public/**/*
- test/**/*
- .github/**
- CHANGELOG.md
- README.md
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/src/public/js/plugins/*
/src/public/js/vendor/*
/mobile/*
/public/*
31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"plugins": ["import", "prettier"],
"extends": ["standard", "prettier"],
"root": true,
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"standard/no-callback-literal": 0, // enable after error handing refactor
"node/exports-style": 0,
"n/no-callback-literal": 0,
"new-cap": 0,
"no-console": "off",
"complexity": ["error", 20]
},
"globals": {
"define": true,
"requirejs": true,
"MG": true,
"Snackbar": true,
"ROLES": true,
"io": true,
"d3": true
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.gitignore merge=ours
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: polonel
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**Is this a BUG REPORT or FEATURE REQUEST?**:
<!-- PUT AN x IN THE BOX -->
- [ ] BUG
- [ ] FEATURE

**What happened**:

**What did you expect to happen**:

**How to reproduce it (as minimally and precisely as possible)**:


**Anything else we need to know?**:

**Environment**:
- Trudesk Version:
- OS (e.g. from /etc/os-release):
- Node.JS Version:
- MongoDB Version:
- Is this hosted on cloud.trudesk.io:

21 changes: 21 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 10
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 5
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- critical
- in progress
- planned
- backlog
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
34 changes: 34 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '30 21 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
days-before-issue-stale: 30
days-before-pr-stale: 45
days-before-issue-close: 5
days-before-pr-close: 10
stale-issue-label: 'stale'
stale-pr-label: 'stale'
exempt-issue-labels: 'pinned,security,critical,in progress,planned,backlog'
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Logs
*.log

# Yarn Cache
.yarn/cache
.yarn/*.gz

# Runtime data
pids
*.pid
*.seed
pidfile

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules

#JetBrians
.idea
*.sassc

#custom
package-lock.json
config.json
config.yml
import.csv
/src/mailer/templates/promo/
*.pem

/public/uploads/tickets/
/public/uploads/users/
coverage.html
*.bk
apidocs
/docs/*.html
app.css.map
*.diff
private/
.sass-cache/
/coverage/
/plugins/
config.local.json
public/css/app.min.css
public/css/app.css
*.aws
*.local
sonar-project.properties
.scannerwork/

public/uploads/assets/*.*
/src/backup/bin/
backups/
restores/

public/uploads/assets/upload/

stats\.json

*.heapsnapshot
5 changes: 5 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
instrumentation:
root: .
extensions:
- .js
excludes: ['**/src/controllers/*.js']
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact = true
Loading

0 comments on commit a1ab8a6

Please sign in to comment.