Skip to content

Commit

Permalink
Merge pull request #1 from taban03/development
Browse files Browse the repository at this point in the history
Version 2
  • Loading branch information
taban03 authored Oct 9, 2019
2 parents fd8990e + 70fa936 commit cf55a33
Show file tree
Hide file tree
Showing 164 changed files with 46,757 additions and 6,737 deletions.
2 changes: 0 additions & 2 deletions .idea/.gitignore

This file was deleted.

16 changes: 16 additions & 0 deletions .idea/components-catalog.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 0 additions & 68 deletions README.md

This file was deleted.

65 changes: 65 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

plugins {
id "com.moowork.node" version "1.2.0"
}
apply plugin: 'base'
node {
// Version of node to use.
version = rootProject.nodejsVersion

// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'https://nodejs.org/dist'

// If true, it will download node using above parameters.
// If false, it will try to use globally installed node.
download = true

// Set the work directory for unpacking node
workDir = file("${project.projectDir}/tools/nodejs")

// Set the work directory for NPM
npmWorkDir = file("${project.projectDir}/tools/npm")

// Set the work directory where node_modules should be located
nodeModulesDir = file("${project.projectDir}/frontend")
}

task cleanBundle(type: Delete) {
delete 'bin', 'build', 'frontend/build', 'frontend/node_modules', 'tools/nodejs'
}

task startMockedBackend(type: NpmTask) {
group = 'testing'
description = "UI Mocked Backend"
args = ['run', 'start:mocked-backend']
}

task javaScriptCoverage(type: NpmTask) {
group = 'testing'
description = "UI JavaScript Test Coverage"
args = ['run', 'coverage']
}

task runTests(type: NpmTask) {
group = 'testing'
description = "UI JavaScript Test Coverage"
args = ['run', 'test']
}

task bundle(type: NpmTask) {
inputs.dir('frontend/src')
inputs.dir('frontend/public')
inputs.files('frontend/.env*')
inputs.file('frontend/eslintrc.json')
inputs.file('frontend/package.json')

outputs.dir('frontend/build')

dependsOn npmInstall
args = ['run', 'build']
}

clean.dependsOn cleanBundle
build.dependsOn bundle
javaScriptCoverage.dependsOn bundle
runTests.dependsOn bundle
9 changes: 9 additions & 0 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
REACT_APP_CATALOG_HOMEPAGE=/ui/v1/apicatalog
REACT_APP_CATALOG_HOME=/api/v1/apicatalog
REACT_APP_CATALOG_UPDATE=/containers
REACT_APP_STATUS_UPDATE_PERIOD=30000
REACT_APP_STATUS_UPDATE_MAX_RETRIES=10
REACT_APP_STATUS_UPDATE_DEBOUNCE=300
REACT_APP_CA_ENV=false
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000
REACT_APP_GATEWAY_URL=
6 changes: 6 additions & 0 deletions frontend/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REACT_APP_CA_ENV=false
REACT_APP_STATUS_UPDATE_PERIOD=10000
REACT_APP_STATUS_UPDATE_MAX_RETRIES=3
REACT_APP_STATUS_UPDATE_DEBOUNCE=300
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000
REACT_APP_GATEWAY_URL=
6 changes: 6 additions & 0 deletions frontend/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REACT_APP_STATUS_UPDATE_PERIOD=30000
REACT_APP_STATUS_UPDATE_MAX_RETRIES=10
REACT_APP_STATUS_UPDATE_DEBOUNCE=300
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000
REACT_APP_GATEWAY_URL=
REACT_APP_CA_ENV=false
9 changes: 9 additions & 0 deletions frontend/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
REACT_APP_GATEWAY_URL=https://localhost:10010
REACT_APP_STATUS_UPDATE_PERIOD=4000
REACT_APP_STATUS_UPDATE_MAX_RETRIES=2
REACT_APP_STATUS_UPDATE_DEBOUNCE=300
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000
REACT_APP_CATALOG_URL_TEST=https://localhost:10010/ui/v1/apicatalog
REACT_APP_CATALOG_USERNAME=user
REACT_APP_CATALOG_PASSWORD=user
REACT_APP_CA_ENV=false
112 changes: 112 additions & 0 deletions frontend/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
"classes": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jquery": true
},
"rules": {
"class-methods-use-this": 0,
"import/no-extraneous-dependencies": 1,
"import/no-named-as-default": 1,
"no-unused-vars": [
1,
{
"argsIgnorePattern": "res|next|^err"
}
],
"arrow-body-style": [
1,
"as-needed"
],
"no-param-reassign": [
2,
{
"props": false
}
],
"no-console": 2,
"import": 0,
"func-names": 0,
"space-before-function-paren": 0,
"comma-dangle": 0,
"max-len": 0,
"import/extensions": 0,
"no-underscore-dangle": 0,
"consistent-return": 0,
"react/display-name": 1,
"linebreak-style": "off",
"react/react-in-jsx-scope": 0,
"react/forbid-prop-types": 0,
"react/no-unescaped-entities": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"radix": 0,
"no-shadow": [
2,
{
"hoist": "all",
"allow": [
"resolve",
"reject",
"done",
"next",
"err",
"error"
]
}
],
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120
}
],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{
"aspects": [
"invalidHref"
]
}
],
"react/no-unused-prop-types": 2,
"react/prop-types": 0
},
"plugins": [
"prettier"
]
}
29 changes: 29 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build
/src/main/resources/static
/tools

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
debug.log
/report
# cypress
cypress/videos/
cypress/screenshots/
test-results/
Binary file added frontend/.gradle/4.9/taskHistory/taskHistory.bin
Binary file not shown.
Binary file added frontend/.gradle/4.9/taskHistory/taskHistory.lock
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions frontend/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Sep 12 17:31:45 CEST 2019
gradle.version=4.9
Loading

0 comments on commit cf55a33

Please sign in to comment.