Skip to content

Commit ca58f3c

Browse files
committed
first commit
0 parents  commit ca58f3c

File tree

769 files changed

+97184
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

769 files changed

+97184
-0
lines changed

.browserslistrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR
17+
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
18+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.devcontainer/Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/java/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 11, 17, 11-bullseye, 17-bullseye, 11-buster, 17-buster
4+
ARG VARIANT="11"
5+
FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}
6+
7+
# [Option] Install Maven
8+
ARG INSTALL_MAVEN="false"
9+
ARG MAVEN_VERSION=""
10+
# [Option] Install Gradle
11+
ARG INSTALL_GRADLE="false"
12+
ARG GRADLE_VERSION=""
13+
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
14+
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
15+
16+
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
17+
ARG NODE_VERSION="none"
18+
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
19+
20+
# [Optional] Uncomment this section to install additional OS packages.
21+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
22+
# && apt-get -y install --no-install-recommends <your-package-list-here>
23+
24+
# [Optional] Uncomment this line to install global node packages.
25+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

.devcontainer/devcontainer.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/java
3+
{
4+
"name": "Blog",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Update the VARIANT arg to pick a Java version: 11, 17
9+
// Append -bullseye or -buster to pin to an OS version.
10+
// Use the -bullseye variants on local arm64/Apple Silicon.
11+
"VARIANT": "11",
12+
// Options
13+
"INSTALL_MAVEN": "true",
14+
"INSTALL_GRADLE": "false",
15+
"NODE_VERSION": "lts/*"
16+
}
17+
},
18+
19+
// Set *default* container specific settings.json values on container create.
20+
"settings": {
21+
"java.home": "/docker-java-home"
22+
},
23+
24+
// Add the IDs of extensions you want installed when the container is created.
25+
"extensions": [
26+
"angular.ng-template",
27+
"christian-kohler.npm-intellisense",
28+
"firsttris.vscode-jest-runner",
29+
"ms-vscode.vscode-typescript-tslint-plugin",
30+
"dbaeumer.vscode-eslint",
31+
"vscjava.vscode-java-pack",
32+
"pivotal.vscode-boot-dev-pack",
33+
"esbenp.prettier-vscode"
34+
],
35+
36+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
37+
"forwardPorts": [4200, 3001, 9000, 8080],
38+
39+
// Use 'postCreateCommand' to run commands after the container is created.
40+
// "postCreateCommand": "java -version",
41+
42+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
43+
"remoteUser": "vscode",
44+
"features": {
45+
"docker-in-docker": "latest",
46+
"docker-from-docker": "latest"
47+
}
48+
}

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# We recommend you to keep these unchanged
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
# Change these settings to your own preference
16+
indent_style = space
17+
indent_size = 4
18+
19+
[*.{ts,tsx,js,jsx,json,css,scss,yml,html,vue}]
20+
indent_size = 2
21+
22+
[*.md]
23+
trim_trailing_whitespace = false

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
src/main/docker/
3+
jest.conf.js
4+
webpack/
5+
target/
6+
build/
7+
node/
8+
postcss.config.js

.eslintrc.json

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@angular-eslint/eslint-plugin", "@typescript-eslint"],
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
8+
"plugin:@angular-eslint/recommended",
9+
"prettier",
10+
"eslint-config-prettier"
11+
],
12+
"env": {
13+
"browser": true,
14+
"es6": true,
15+
"commonjs": true
16+
},
17+
"parserOptions": {
18+
"ecmaVersion": 2018,
19+
"sourceType": "module",
20+
"project": "./tsconfig.json"
21+
},
22+
"rules": {
23+
"@angular-eslint/component-selector": [
24+
"error",
25+
{
26+
"type": "element",
27+
"prefix": "jhi",
28+
"style": "kebab-case"
29+
}
30+
],
31+
"@angular-eslint/directive-selector": [
32+
"error",
33+
{
34+
"type": "attribute",
35+
"prefix": "jhi",
36+
"style": "camelCase"
37+
}
38+
],
39+
"@angular-eslint/relative-url-prefix": "error",
40+
"@typescript-eslint/ban-types": [
41+
"error",
42+
{
43+
"extendDefaults": true,
44+
"types": {
45+
"{}": false
46+
}
47+
}
48+
],
49+
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
50+
"@typescript-eslint/explicit-module-boundary-types": "off",
51+
"@typescript-eslint/member-ordering": [
52+
"error",
53+
{
54+
"default": [
55+
"public-static-field",
56+
"protected-static-field",
57+
"private-static-field",
58+
"public-instance-field",
59+
"protected-instance-field",
60+
"private-instance-field",
61+
"constructor",
62+
"public-static-method",
63+
"protected-static-method",
64+
"private-static-method",
65+
"public-instance-method",
66+
"protected-instance-method",
67+
"private-instance-method"
68+
]
69+
}
70+
],
71+
"@typescript-eslint/no-explicit-any": "off",
72+
"@typescript-eslint/no-floating-promises": "off",
73+
"@typescript-eslint/no-non-null-assertion": "off",
74+
"@typescript-eslint/no-parameter-properties": ["warn", { "allows": ["public", "private", "protected"] }],
75+
"@typescript-eslint/no-shadow": ["error"],
76+
"@typescript-eslint/no-unnecessary-condition": "error",
77+
"@typescript-eslint/no-unsafe-argument": "off",
78+
"@typescript-eslint/no-unsafe-assignment": "off",
79+
"@typescript-eslint/no-unsafe-call": "off",
80+
"@typescript-eslint/no-unsafe-member-access": "off",
81+
"@typescript-eslint/prefer-nullish-coalescing": "error",
82+
"@typescript-eslint/prefer-optional-chain": "error",
83+
"@typescript-eslint/unbound-method": "off",
84+
"arrow-body-style": "error",
85+
"curly": "error",
86+
"eqeqeq": ["error", "always", { "null": "ignore" }],
87+
"guard-for-in": "error",
88+
"no-bitwise": "error",
89+
"no-caller": "error",
90+
"no-console": ["error", { "allow": ["warn", "error"] }],
91+
"no-eval": "error",
92+
"no-labels": "error",
93+
"no-new": "error",
94+
"no-new-wrappers": "error",
95+
"object-shorthand": ["error", "always", { "avoidExplicitReturnArrows": true }],
96+
"radix": "error",
97+
"spaced-comment": ["warn", "always"]
98+
}
99+
}

.gitattributes

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# This file is inspired by https://github.com/alexkaratarakis/gitattributes
2+
#
3+
# Auto detect text files and perform LF normalization
4+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
5+
* text=auto
6+
7+
# The above will handle all files NOT found below
8+
# These files are text and should be normalized (Convert crlf => lf)
9+
10+
*.bat text eol=crlf
11+
*.cmd text eol=crlf
12+
*.ps1 text eol=crlf
13+
*.coffee text
14+
*.css text
15+
*.cql text
16+
*.df text
17+
*.ejs text
18+
*.html text
19+
*.java text
20+
*.js text
21+
*.json text
22+
*.less text
23+
*.properties text
24+
*.sass text
25+
*.scss text
26+
*.sh text eol=lf
27+
*.sql text
28+
*.txt text
29+
*.ts text
30+
*.xml text
31+
*.yaml text
32+
*.yml text
33+
34+
# Documents
35+
*.doc diff=astextplain
36+
*.DOC diff=astextplain
37+
*.docx diff=astextplain
38+
*.DOCX diff=astextplain
39+
*.dot diff=astextplain
40+
*.DOT diff=astextplain
41+
*.pdf diff=astextplain
42+
*.PDF diff=astextplain
43+
*.rtf diff=astextplain
44+
*.RTF diff=astextplain
45+
*.markdown text
46+
*.md text
47+
*.adoc text
48+
*.textile text
49+
*.mustache text
50+
*.csv text
51+
*.tab text
52+
*.tsv text
53+
*.txt text
54+
AUTHORS text
55+
CHANGELOG text
56+
CHANGES text
57+
CONTRIBUTING text
58+
COPYING text
59+
copyright text
60+
*COPYRIGHT* text
61+
INSTALL text
62+
license text
63+
LICENSE text
64+
NEWS text
65+
readme text
66+
*README* text
67+
TODO text
68+
69+
# Graphics
70+
*.png binary
71+
*.jpg binary
72+
*.jpeg binary
73+
*.gif binary
74+
*.tif binary
75+
*.tiff binary
76+
*.ico binary
77+
# SVG treated as an asset (binary) by default. If you want to treat it as text,
78+
# comment-out the following line and uncomment the line after.
79+
*.svg binary
80+
#*.svg text
81+
*.eps binary
82+
83+
# These files are binary and should be left untouched
84+
# (binary is a macro for -text -diff)
85+
*.class binary
86+
*.jar binary
87+
*.war binary
88+
89+
## LINTERS
90+
.csslintrc text
91+
.eslintrc text
92+
.jscsrc text
93+
.jshintrc text
94+
.jshintignore text
95+
.stylelintrc text
96+
97+
## CONFIGS
98+
*.conf text
99+
*.config text
100+
.editorconfig text
101+
.gitattributes text
102+
.gitconfig text
103+
.gitignore text
104+
.htaccess text
105+
*.npmignore text
106+
107+
## HEROKU
108+
Procfile text
109+
.slugignore text
110+
111+
## AUDIO
112+
*.kar binary
113+
*.m4a binary
114+
*.mid binary
115+
*.midi binary
116+
*.mp3 binary
117+
*.ogg binary
118+
*.ra binary
119+
120+
## VIDEO
121+
*.3gpp binary
122+
*.3gp binary
123+
*.as binary
124+
*.asf binary
125+
*.asx binary
126+
*.fla binary
127+
*.flv binary
128+
*.m4v binary
129+
*.mng binary
130+
*.mov binary
131+
*.mp4 binary
132+
*.mpeg binary
133+
*.mpg binary
134+
*.swc binary
135+
*.swf binary
136+
*.webm binary
137+
138+
## ARCHIVES
139+
*.7z binary
140+
*.gz binary
141+
*.rar binary
142+
*.tar binary
143+
*.zip binary
144+
145+
## FONTS
146+
*.ttf binary
147+
*.eot binary
148+
*.otf binary
149+
*.woff binary
150+
*.woff2 binary

0 commit comments

Comments
 (0)