-
Notifications
You must be signed in to change notification settings - Fork 0
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
19 changed files
with
6,997 additions
and
25 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 @@ | ||
!.eslintrc.js |
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,64 @@ | ||
module.exports = { | ||
"extends": [ | ||
"eslint:recommended", | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:vue/vue3-recommended', | ||
], | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parser": "vue-eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module", | ||
"requireConfigFile": false, | ||
"parser": { | ||
"ts": "@typescript-eslint/parser" | ||
} | ||
}, | ||
"globals": { | ||
"define": false, | ||
"require": false, | ||
"window": false, | ||
"console": false, | ||
"history": false, | ||
"location": false, | ||
"Promise": false, | ||
"setTimeout": false, | ||
"URL": false, | ||
"URLSearchParams": false, | ||
"fetch": false | ||
}, | ||
"ignorePatterns": [".eslintrc.js", "**/media/plugins/*"], | ||
"rules": { | ||
"semi": ["error", "always"], | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ "*.vue" ], | ||
"rules": { | ||
"vue/html-indent": [2, 4] | ||
} | ||
}, | ||
{ | ||
"files": [ "*.js" ], | ||
"rules": { | ||
"indent": ["error", 4], | ||
"space-before-function-paren": ["error", "never"], | ||
"no-extra-boolean-cast": 0, // 0=silence, 1=warning, 2=error | ||
// allow async-await | ||
'generator-star-spacing': 'off', | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-unused-vars': [1, { | ||
argsIgnorePattern: '^_' | ||
}], | ||
"camelcase": [1, {"properties": "always"}], | ||
} | ||
} | ||
] | ||
}; | ||
|
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,40 @@ | ||
name: CI | ||
|
||
on: | ||
# push: -- just run on PRs for now | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgis/postgis:13-3.0 | ||
env: | ||
POSTGRES_PASSWORD: postgis | ||
POSTGRES_DB: package | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
||
- name: Check frontend files | ||
run: | | ||
echo "Removing yarn.lock due to yarn v1 package resolution issues" | ||
echo "https://github.com/iarna/wide-align/issues/63" | ||
rm yarn.lock | ||
yarn && yarn eslint:check && yarn typescript:check | ||
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,4 +1,12 @@ | ||
*.egg-info | ||
*.pyc | ||
*.log | ||
*.DS_Store | ||
arches_rdm/logs | ||
arches_rdm/export_deliverables | ||
arches_rdm/staticfiles | ||
arches_rdm/media/node_modules | ||
arches_rdm/media/build/* | ||
arches_rdm/uploadedfiles/* | ||
.vscode/ | ||
*.egg-info | ||
.DS_STORE | ||
CACHE |
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,2 @@ | ||
--install.modules-folder "./arches_rdm/media/node_modules" | ||
--add.modules-folder "./arches_rdm/media/node_modules" |
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 @@ | ||
{"de":{}} |
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,10 @@ | ||
msgid "" | ||
msgstr "" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
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 @@ | ||
{"en":{}} |
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,10 @@ | ||
msgid "" | ||
msgstr "" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: en\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
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 @@ | ||
msgid "" | ||
msgstr "" | ||
"Content-Type: text/plain; charset=UTF-8\n" |
18 changes: 10 additions & 8 deletions
18
arches_rdm/media/js/views/components/plugins/reference-data-manager.js
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,14 +1,16 @@ | ||
import ko from 'knockout'; | ||
import { createApp } from 'vue'; | ||
import PrimeVue from 'primevue/config'; | ||
import RDMApp from '@/App.vue'; | ||
import RDMAppTepmlate from 'templates/views/components/plugins/reference-data-manager.htm'; | ||
// import RDMVueApplication from '@/components/App.vue'; | ||
import createVueApplication from 'utils/create-vue-application'; | ||
import RDMAppTemplate from 'templates/views/components/plugins/reference-data-manager.htm'; | ||
|
||
import packageJSON from 'arches_rdm/package.json' | ||
|
||
|
||
ko.components.register('reference-data-manager', { | ||
viewModel: function() { | ||
const app = createApp(RDMApp); | ||
app.use(PrimeVue); | ||
app.mount('#rdm-mounting-point'); | ||
// createVueApplication(packageJSON.name, RDMVueApplication).then(vueApp => { | ||
// vueApp.mount('#rdm-mounting-point'); | ||
// }); | ||
}, | ||
template: RDMAppTepmlate, | ||
template: RDMAppTemplate, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
declare module '*.vue'; |
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,43 @@ | ||
|
||
module.exports = { | ||
input: { | ||
path: "./arches_rdm/src", // only files in this directory are considered for extraction | ||
include: ["**/*.vue"], // glob patterns to select files for extraction | ||
exclude: [], // glob patterns to exclude files from extraction | ||
jsExtractorOpts:[ // custom extractor keyword. default empty. | ||
{ | ||
keyword: "__", // only extractor default keyword such as $gettext,use keyword to custom | ||
options: { // see https://github.com/lukasgeiter/gettext-extractor | ||
content: { | ||
replaceNewLines: "\n", | ||
}, | ||
arguments: { | ||
text: 0, | ||
}, | ||
}, | ||
}, | ||
{ | ||
keyword: "_n", // $ngettext | ||
options: { | ||
content: { | ||
replaceNewLines: "\n", | ||
}, | ||
arguments: { | ||
text: 0, | ||
textPlural: 1, | ||
}, | ||
}, | ||
}, | ||
], | ||
compileTemplate: false, // do not compile <template> tag when its lang is not html | ||
}, | ||
output: { | ||
path: "./arches_rdm/locale", // output path of all created files | ||
potPath: "./messages.pot", // relative to output.path, so by default "./src/language/messages.pot" | ||
jsonPath: "./", // relative to output.path, so by default "./src/language/translations.json" | ||
locales: ["en", "de"], | ||
flat: false, // don't create subdirectories for locales | ||
linguas: false, // create a LINGUAS file | ||
splitJson: true, // create separate json files for each locale. If used, jsonPath must end with a directory, not a file | ||
}, | ||
}; |
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,5 @@ | ||
{ | ||
"events": { | ||
"start": "clear" | ||
} | ||
} |
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,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"jsx": "preserve", | ||
"jsxImportSource": "vue", | ||
"noImplicitThis": true, | ||
"strict": true, | ||
"verbatimModuleSyntax": true, | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"baseUrl": "./arches_rdm/src/", | ||
"paths": { | ||
"@/*": [ | ||
"*.ts", | ||
"*.vue", | ||
], | ||
}, | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.vue", | ||
], | ||
} |
Oops, something went wrong.