From 470ed4a47d3f1f4fa73d059be3a6aa1f0ab752e6 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 29 Apr 2020 11:33:39 +0200 Subject: [PATCH] Inital commit --- .drone.yml | 47 + .gitignore | 112 + .vscode/extensions.json | 9 + .vscode/settings.json | 23 + COMMIT_CONVENTION.md | 78 + Dockerfile | 9 + README.md | 101 + docker-compose.yml | 23 + server/ .eslintignore | 6 + server/.env.example | 7 + server/.eslintrc.js | 89 + server/gulpfile.js | 144 + server/package-lock.json | 12425 ++++++++++++++++ server/package.json | 61 + server/server.js | 2 + server/src/app/app.module.ts | 10 + server/src/app/controllers/app.controller.ts | 14 + .../src/app/interfaces/channel.interface.ts | 6 + server/src/app/interfaces/client.interface.ts | 5 + .../interfaces/populatedchannel.interface.ts | 5 + server/src/app/services/teamspeak.service.ts | 80 + server/src/server.ts | 45 + server/tsconfig.json | 21 + webapp/src/js/app.js | 3 + webapp/src/scss/index.scss | 14 + webapp/src/views/index.hbs | 12 + webapp/src/views/layouts/main.hbs | 13 + webapp/src/views/partials/footer.hbs | 10 + webapp/src/views/partials/head.hbs | 15 + 29 files changed, 13389 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 COMMIT_CONVENTION.md create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 server/ .eslintignore create mode 100644 server/.env.example create mode 100644 server/.eslintrc.js create mode 100644 server/gulpfile.js create mode 100644 server/package-lock.json create mode 100644 server/package.json create mode 100644 server/server.js create mode 100644 server/src/app/app.module.ts create mode 100644 server/src/app/controllers/app.controller.ts create mode 100644 server/src/app/interfaces/channel.interface.ts create mode 100644 server/src/app/interfaces/client.interface.ts create mode 100644 server/src/app/interfaces/populatedchannel.interface.ts create mode 100644 server/src/app/services/teamspeak.service.ts create mode 100644 server/src/server.ts create mode 100644 server/tsconfig.json create mode 100644 webapp/src/js/app.js create mode 100644 webapp/src/scss/index.scss create mode 100644 webapp/src/views/index.hbs create mode 100644 webapp/src/views/layouts/main.hbs create mode 100644 webapp/src/views/partials/footer.hbs create mode 100644 webapp/src/views/partials/head.hbs diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..afdcaf6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +kind: pipeline +name: default + +steps: +- name: install + image: node:14.0 + commands: + - npm --prefix ./server install ./server + +- name: test + image: node:14.0 + commands: + - npm --prefix ./server run test + +- name: lint + image: node:14.0 + commands: + - npm --prefix ./server run lint + +- name: build + image: node:14.0 + commands: + - npm --prefix ./server run build + when: + event: + - push + - tag + - deployment + +- name: deploy + image: plugins/docker + settings: + registry: registry.cliffbreak.de + repo: registry.cliffbreak.de/tsviewer + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + - push + - tag + - deployment + +trigger: + branch: + - master \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84cae9b --- /dev/null +++ b/.gitignore @@ -0,0 +1,112 @@ +# ---> Node +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +## Custom direcotries +dist/ +webapp/assets/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e98d5dd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "sibiraj-s.vscode-scss-formatter", + "mikestead.dotenv", + "streetsidesoftware.code-spell-checker", + "streetsidesoftware.code-spell-checker-german", + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e9c22ae --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,23 @@ +{ + "editor.formatOnSave": true, + "html.format.indentHandlebars": true, + "eslint.workingDirectories": [ + "./server", + ], + "eslint.format.enable": true, + "cSpell.language": "de,en,de-DE,en-US", + "cSpell.words": [ + "Giesel", + "Gitea", + "Roboto", + "camelcase", + "channellist", + "clid", + "cliffbreak", + "fastify", + "ijmap", + "nestjs", + "tsviewer", + "uglifycss" + ], +} \ No newline at end of file diff --git a/COMMIT_CONVENTION.md b/COMMIT_CONVENTION.md new file mode 100644 index 0000000..f49a4f1 --- /dev/null +++ b/COMMIT_CONVENTION.md @@ -0,0 +1,78 @@ +### Commit Message Format + +Each commit message consists of a **header**, a **body** and a **footer**. The header has a special +format that includes a **type**, a **scope** and a **subject**: + +``` +(): + + + +