-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
128 changed files
with
18,465 additions
and
12,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.git | ||
.dockerignore | ||
.gitignore | ||
.circleci | ||
.github | ||
.env | ||
|
||
docs | ||
extra | ||
|
||
Dockerfile | ||
**/*.md | ||
azure-pipelines.yml | ||
tsconfig.json | ||
|
||
# Autogenerated files | ||
client/node_modules | ||
server/env | ||
server/static/js | ||
server/static/css | ||
|
||
# From .gitignore | ||
server/planarallyserver.log | ||
server/planar.save* | ||
server/planar.sqlite* | ||
server/server_config.cfg | ||
|
||
**/.idea/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: pull_request | ||
name: PR | ||
jobs: | ||
PR_flow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
version: 10.x | ||
- name: npm i | ||
working-directory: client | ||
run: | | ||
npm install | ||
- name: lint | ||
working-directory: client | ||
run: | | ||
npm run lint | ||
- name: test | ||
working-directory: client | ||
run: | | ||
npm run test | ||
- name: build | ||
working-directory: client | ||
run: | | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,40 @@ | ||
################################ | ||
# Build stage for the frontend # | ||
################################ | ||
FROM node:12-alpine as BUILDER | ||
|
||
WORKDIR /usr/src/client | ||
# Copy first package.json so changes in code dont require to reinstall all npm modules | ||
COPY client/package.json client/package-lock.json ./ | ||
RUN npm i | ||
|
||
COPY . /usr/src | ||
RUN npm run build | ||
|
||
# Added here to avoid an extra layer in the final stage | ||
COPY Dockerfiles/server_config_docker.cfg /usr/src/server/server_config.cfg | ||
|
||
############### | ||
# Final stage # | ||
############### | ||
FROM python:3.6-slim | ||
|
||
MAINTAINER Kruptein <[email protected]> | ||
|
||
EXPOSE 8000 | ||
|
||
WORKDIR /usr/src/app | ||
WORKDIR /planarally | ||
|
||
VOLUME /usr/src/app/data | ||
VOLUME /usr/src/app/static/assets | ||
VOLUME /planarally/data | ||
VOLUME /planarally/static/assets | ||
|
||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
|
||
COPY server/ . | ||
# Copy first requirements.txt so changes in code dont require to reinstall python requirements | ||
COPY --from=BUILDER /usr/src/server/requirements.txt . | ||
RUN apt-get update && apt-get install dumb-init curl -y && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY Dockerfiles/server_config_docker.cfg server_config.cfg | ||
# Copy the final server files | ||
COPY --from=BUILDER /usr/src/server/ . | ||
|
||
CMD [ "python", "-u", "planarserver.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/* | ||
jest.config.js | ||
vue.config.js | ||
src/shims/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: ["plugin:@typescript-eslint/recommended", "plugin:vue/essential", "@vue/typescript", "@vue/prettier"], | ||
rules: { | ||
// "no-console": process.env.NODE_ENV === "production" ? "error" : "off", | ||
"no-console": "off", | ||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-angle-bracket-type-assertion": "off", | ||
"@typescript-eslint/explicit-member-accessibility": [2, { accessibility: "no-public" }], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-function-return-type": [2, { allowExpressions: true }], | ||
"@typescript-eslint/no-use-before-define": 0, | ||
"no-constant-condition": "off", | ||
"@typescript-eslint/no-unused-vars": [2, { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], | ||
"no-unused-vars": "off", | ||
"no-dupe-class-members": "off", | ||
}, | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
ecmaFeatures: { | ||
jsx: false, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"parser": "typescript", | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"htmlWhitespaceSensitivity": "ignore", | ||
"printWidth": 120, | ||
"tabWidth": 4 | ||
} | ||
"singleQuote": false, | ||
"tabWidth": 4, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ["@vue/cli-plugin-babel/preset"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
moduleFileExtensions: ["js", "json", "vue", "ts"], | ||
transform: { | ||
"^.+\\.vue$": "vue-jest", | ||
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub", | ||
"^.+\\.ts$": "ts-jest", | ||
}, | ||
transformIgnorePatterns: ["/node_modules/(?!@babel)"], | ||
moduleNameMapper: { | ||
"^@/(.*)$": "<rootDir>/src/$1", | ||
}, | ||
snapshotSerializers: ["jest-serializer-vue"], | ||
testMatch: ["**/tests/unit/**/*.test.(js|ts)|**/__tests__/*.(js|ts)"], | ||
testURL: "http://localhost/", | ||
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"], | ||
globals: { | ||
"ts-jest": { | ||
babelConfig: true, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.