Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to vue v3 #977

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
55884c3
wip: switching to mostly default vite package.json [skip ci]
sekwah41 Aug 28, 2024
bc76981
wip: adding template vite.config.js [skip ci]
sekwah41 Aug 28, 2024
16c893a
wip: got the basic template working [skip ci]
sekwah41 Aug 29, 2024
a3cac87
wip: importing libraries and updating references [skip ci]
sekwah41 Aug 29, 2024
434405a
wip: update to silence warnings we have no control over [skip ci]
sekwah41 Aug 29, 2024
d82e19b
wip: update the router creation [skip ci]
sekwah41 Aug 29, 2024
5954c52
wip: fixing the translations and events [skip ci]
sekwah41 Aug 29, 2024
be1e090
wip: removing old copy of main as I am using a second fork locally to…
sekwah41 Aug 29, 2024
869145d
wip: remove old vuecli config [skip ci]
sekwah41 Aug 29, 2024
123bc50
wip: switch env values to have VITE_ before so they can be references…
sekwah41 Aug 29, 2024
c4bacb8
wip: fix translations for routes and 404 route [skip ci]
sekwah41 Aug 29, 2024
b0e8233
wip: fix imports and install oidc-client [skip ci]
sekwah41 Aug 29, 2024
67ce556
wip: pin package versions [skip ci]
sekwah41 Aug 29, 2024
fcabc99
wip: apply additional libraries [skip ci]
sekwah41 Aug 30, 2024
93c0d14
wip: install bootstrap next and run npm format [skip ci]
sekwah41 Aug 30, 2024
d93d90f
wip: something is rendering, but its a blank page :( [skip ci]
sekwah41 Aug 30, 2024
beb9863
wip: fix 404 translations [skip ci]
sekwah41 Aug 30, 2024
c4b30ba
wip: fix double initialise and toastr wrong version [skip ci]
sekwah41 Aug 30, 2024
b4fc572
wip: change how styles are applied to the root app [skip ci]
sekwah41 Aug 30, 2024
825a920
wip: fix fontawesome and styling order [skip ci]
sekwah41 Aug 30, 2024
5eb2e7a
wip: fix validate input group forum input component [skip ci]
sekwah41 Aug 30, 2024
d88b132
wip: switch back to old naming [skip ci]
sekwah41 Aug 30, 2024
06f3d8a
wip: some cleanup [skip ci]
sekwah41 Dec 14, 2024
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
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NODE_ENV=production
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_SERVER_URL=
VITE_VUE_APP_I18N_LOCALE=en
VITE_VUE_APP_I18N_FALLBACK_LOCALE=en
VITE_VUE_APP_SERVER_URL=
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NODE_ENV=development
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_SERVER_URL=http://localhost:8080
VITE_VUE_APP_I18N_LOCALE=en
VITE_VUE_APP_I18N_FALLBACK_LOCALE=en
VITE_VUE_APP_SERVER_URL=http://localhost:8080
19 changes: 10 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
env: {
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
},
extends: [
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/essential',
'plugin:prettier/recommended',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};
parserOptions: {
ecmaVersion: 'latest',
parser: '@babel/eslint-parser',
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"jsonRecursiveSort": true,
"plugins": ["prettier-plugin-sort-json"],
"semi": true,
Expand Down
39 changes: 39 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.ico">
<title>Dependency-Track</title>
<base href="/" />
</head>
<body class="sidebar-minimized">
<noscript>
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module">
(function () {
if (!sessionStorage.length) {
localStorage.setItem('getSessionStorage', Date.now());
}
window.addEventListener('storage', function (event) {
if (event.key == 'getSessionStorage') {
localStorage.setItem('sessionStorage', JSON.stringify(sessionStorage));
localStorage.removeItem('sessionStorage');
} else if (event.key == 'sessionStorage' && !sessionStorage.length) {
var data = JSON.parse(event.newValue);
for (let key in data) {
sessionStorage.setItem(key, data[key]);
}
} else if (event.key == 'sessionInvalidate') {
sessionStorage.clear();
location.reload();
}
});
})();
</script>
</body>
</html>
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading