Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
8d3224f
adds notfound page
supernoir May 28, 2019
2fc709a
adds admin panel
supernoir May 29, 2019
30ebac0
adds events model, feed
supernoir Jun 3, 2019
1cfc20f
adds APP to adminpanel
supernoir Jun 10, 2019
4a7c885
Merge branch 'master' into development
supernoir Jun 12, 2019
107ba5b
adds first api tests
supernoir Jun 12, 2019
183e54e
updates api tests, handles api calls asynchronously
supernoir Jun 13, 2019
de595a8
#20 renames books to projects
supernoir Jun 14, 2019
0515131
adds auth service, cleans up
supernoir Jun 14, 2019
4851b8a
rewrites api calls with sendApiRequest
supernoir Jun 16, 2019
827daaf
updates posting thru sendapirequest
supernoir Jun 17, 2019
29a0a1c
create site.js
supernoir Jun 18, 2019
da019df
create sw.js
supernoir Jun 18, 2019
d367298
refactors projects to use sendapirequest #10
supernoir Jun 19, 2019
f341496
updates dependencies
supernoir Jun 19, 2019
33abaf1
restructures characters to use sendapirequest
supernoir Jun 19, 2019
d3d3f53
reformats serviceworker files
supernoir Jun 19, 2019
0d6ed6b
cleans up api
supernoir Jun 20, 2019
c1116a8
extends and restructures models, adds Users and Roles, #9 #29
supernoir Jun 20, 2019
5a0feba
adds edit character
supernoir Jun 20, 2019
a51b814
Bump stringstream from 0.0.5 to 0.0.6 in /server
dependabot[bot] Jun 21, 2019
823ad01
adds EventsList
supernoir Jun 21, 2019
f2049f1
amends sw to work with webpack
supernoir Jun 21, 2019
feeebc9
Merge pull request #27 from supernoir/26-implement-serviceworkers
supernoir Jun 22, 2019
3517287
Delete .DS_Store
supernoir Jun 22, 2019
ed8198d
Merge branch 'dependabot/npm_and_yarn/server/stringstream-0.0.6' into…
supernoir Jun 22, 2019
f09e23d
adds gitlab yaml
supernoir Jun 23, 2019
e22560c
removes npm cache clean from ci config
supernoir Jun 23, 2019
f6342d3
cleans up and corrects gitlab yaml
supernoir Jun 23, 2019
51bb388
#35: updates missing fields in spanish translation
supernoir Jun 26, 2019
83780e5
sets up jest testing for frontend
supernoir Jun 26, 2019
9314a40
#35 updates spanish and english translations to include event types, …
supernoir Jun 27, 2019
ff28803
adds translations
supernoir Jun 27, 2019
4b132bb
Merge branch '35-fix-missing-translations-es-en' into 'development'
supernoir Jun 27, 2019
23822c2
cleans up
supernoir Jun 27, 2019
5d23a78
adds redux
supernoir Jun 27, 2019
bc232aa
adds redux messenger, catches axios errors
supernoir Jun 29, 2019
937906b
dispatches messages on edit or new entity
supernoir Jun 29, 2019
44f700a
Merge branch '41-implement-messenger' into 'development'
supernoir Jun 29, 2019
4d2b192
moves scenes into scene dir, cleans up
supernoir Jun 29, 2019
1debfdc
corrects test dir
supernoir Jun 29, 2019
d4702fb
updates snapshot
supernoir Jun 29, 2019
edb6abb
adds loading states, cleans up
supernoir Jul 1, 2019
3a93f62
corrects typo, adds randomQuote component with testQuotes
supernoir Jul 1, 2019
afd717f
adds dashboard count, cleans up
supernoir Jul 1, 2019
6d9df01
cleans up
supernoir Jul 1, 2019
c7d7336
renames layouts dir to basics, updates tests
supernoir Jul 1, 2019
6906b6a
Merge branch '18-loading-state' into 'development'
supernoir Jul 1, 2019
ef33c47
fixes incorrect paths
supernoir Jul 1, 2019
df169f3
adds DeleteModal
supernoir Jul 2, 2019
a396ac2
adds delete api action to frontend
supernoir Jul 2, 2019
561da20
implements redux part of language switcher
supernoir Jul 2, 2019
6e831a7
adds menu item to set locales, translations, fixes redux
supernoir Jul 3, 2019
4ae6ac9
abstracts App layer away from entry point
supernoir Jul 3, 2019
ac94776
creates universal app store container, handles locale change
supernoir Jul 3, 2019
4d590fe
refactors redux usage
supernoir Jul 3, 2019
32649ec
Merge branch '37-add-language-switcher' into 'development'
supernoir Jul 5, 2019
46afba0
adds tags to project models
supernoir Jul 5, 2019
97799f1
implements adding and viewing project tags
supernoir Jul 5, 2019
1aad5c2
adds tags to projectlist
supernoir Jul 6, 2019
246855e
adds tagslist to client, middleware saves tags separately from projects
supernoir Jul 6, 2019
b1f8c31
adds project type to api, model, client
supernoir Jul 7, 2019
e2aebcc
Merge branch '11-implement-project-tags' into 'development'
supernoir Jul 7, 2019
5861960
adds project state, board view for projects
supernoir Jul 8, 2019
6376fd9
adds german translation, updates existing i18n files
supernoir Jul 8, 2019
da76f4a
#29 restructures board view, adds translations
supernoir Jul 11, 2019
ea00735
adds EditProject, PUTs updated project, adds new eslintrc
supernoir Jul 12, 2019
66de6eb
Merge branch '29-add-project-states' into 'development'
supernoir Jul 12, 2019
fc64e17
Merge branch 'development' into 36-add-german-translation
supernoir Jul 12, 2019
260236b
sets english as default lang, augments german translation
supernoir Jul 12, 2019
09371b5
Merge branch '36-add-german-translation' into 'development'
supernoir Jul 12, 2019
79a9679
adds jsdocs, proptypes
supernoir Jul 15, 2019
236dcae
adds favicon, reduces console warnings
supernoir Jul 15, 2019
6887646
adds snapshot tests for basics, TagsList
supernoir Jul 15, 2019
c00af76
adds db backup script, typescript config for api
supernoir Jul 16, 2019
fff0537
adds db backup dirs to admin panel
supernoir Jul 16, 2019
92f9e0c
Merge branch '53-increase-codestyle' into 'development'
supernoir Jul 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
82 changes: 82 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
module.exports = {
extends : ['eslint:recommended'],
plugins : ['react', 'jest', 'tslint'],
env : {
es6 : true,
jquery : true,
browser: true,
node : true,
jest : true
},
globals : {
DS : true,
_ : true,
jest : true
},
'parser' : 'babel-eslint',
'parserOptions': {
'ecmaVersion' : 6,
'sourceType' : 'module',
'ecmaFeatures': {
'jsx' : true,
'experimentalObjectRestSpread': true
}
},
rules : {
'linebreak-style' : ['error', 'unix'],
'quotes' : ['error', 'single', { 'allowTemplateLiterals': true }], // Forciert Single Quotes, aber erlaubt Backticks für Template Literals
'no-mixed-spaces-and-tabs' : ['error'], // Erlaubt sind Tabs (siehe unter 'indent'), aber nicht Spaces (Auf keinen Fall 'Smart-Tabs' einschalten)
'no-unused-vars' : 1, // Warnt bei ungenutzten Variabeln
'no-undef' : 'warn', // Warnt bei undefinierten Variabeln
'no-tabs' : 'off', // Forciert die Nutzung von Tabs vs. Spaces
'indent' : ['error', 'tab', { 'SwitchCase': 1, 'MemberExpression': 1, 'ArrayExpression': 1, 'VariableDeclarator': 1 }], // Forciert die Nutzung von Tabs zur Einrückung
'no-trailing-spaces' : 'error', // Löscht Leerzeichen hinter Codezeilen
'object-curly-spacing' : ['error', 'always', { 'objectsInObjects': true }], // Definiert das Spacing innerhalb von geschwungenen Klammern
'semi' : ['error', 'always'], // Forciert die Nutzung von Semikola
'react/jsx-uses-vars' : 1, // Definiert, dass JSX-Klassen die importiert wurden nicht als unbenutzte Variabeln betrachtet werden
'react/no-unused-prop-types' : 2, // Forciert, dass alle PropTypes in Verwendung sein müssen
'react/jsx-no-duplicate-props': 2, // Erlaubt keine doppelten Props
'react/require-render-return' : 1, // Erfordert einen return value in Render-Methoden
'jest/no-disabled-tests' : 'warn',
'jest/no-focused-tests' : 'error',
'jest/no-identical-title' : 'error',
'jest/valid-expect' : 'error',
'default-case' : 'error', // Forciert, dass switch-case immer ein default case haben muss
'key-spacing' : [1, { // Definiert die Darstellung von Leerraum zwischen Key-Value-Paaren
'singleLine': {
'beforeColon': false,
'afterColon' : true,
'mode' : 'minimum'
},
'multiLine' : {
'beforeColon': false,
'afterColon' : true,
'align' : 'colon',
'mode' : 'minimum'
}
}],
'max-len' : [ // Definiert die maximale Länge von Codezeilen
1,
{
code : 160,
tabWidth : 4,
ignoreComments: true,
ignoreUrls : true
}
],
// Wir wollen JSDoc für alles außer Arrow functions und Funktionsausdrücken
'require-jsdoc' : ['warn', {
'require': {
'FunctionDeclaration' : false,
'MethodDefinition' : false,
'ClassDeclaration' : true,
'ArrowFunctionExpression': false,
'FunctionExpression' : false
}
}],
/* 'tslint/config' : ['warn', {
lintFile : './tslint.json',
configFile: './tsconfig.json'
}] */
}
};
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
node_modules
# Ignore folders
node_modules

# logs
access.log

# Ignore hidden files
.DS_Store

# Ignore Lockfiles
yarn.lock
package-lock.json
59 changes: 59 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
image: node:8.16.0-jessie

variables:
NODE_VERSION: "8.16.0"

stages:
- test
- build


# ----------------------------------
# TEST
# ----------------------------------

test app:
stage: test
image: node:$NODE_VERSION
before_script:
- cd app
script:
- npm install
- npm run test-app

test server:
stage: test
image: node:$NODE_VERSION
before_script:
- cd server
script:
- npm install
- npm run test


# ----------------------------------
# BUILD
# ----------------------------------

build app:
only:
- master
stage: build
image: node:$NODE_VERSION
before_script:
- cd app
script:
- npm install
- npm run start-server

build server:
only:
- master
stage: build
image: node:$NODE_VERSION
before_script:
- cd server
script:
- npm install
- npm run build
2 changes: 1 addition & 1 deletion app/.babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": [
"@babel/preset-react",
"@babel/preset-env"
"@babel/preset-env",
],
"plugins": [
"@babel/plugin-proposal-class-properties"
Expand Down
13 changes: 12 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
node_modules
# Ignore folders
node_modules

# Ignore hidden files
.DS_Store

# Ignore Lockfiles
yarn.lock
package-lock.json

# Ignore Environment Variable Files
.env
Binary file added app/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/">
<link rel="stylesheet" href="styles/main.css">

</head>
<body>
Expand Down
Loading