Skip to content

Commit

Permalink
merge and add support for dev deployment branch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yileifeng committed Jun 20, 2024
1 parent d40fb1c commit 7329817
Show file tree
Hide file tree
Showing 23 changed files with 6,194 additions and 36,369 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VUE_APP_API_URL=#{API_URL}#
VUE_APP_CURR_ENV=#{CURR_ENV}#
VUE_APP_NET_API_URL=#{NET_API_URL}#
VITE_APP_API_URL=#{API_URL}#
VITE_APP_CURR_ENV=#{CURR_ENV}#
VITE_APP_NET_API_URL=#{NET_API_URL}#
7 changes: 3 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module.exports = {
root: true,
env: {
node: true,
es2022: true
node: true
},
extends: [
'plugin:vue/essential',
Expand All @@ -15,8 +14,8 @@ module.exports = {
ecmaVersion: 2020
},
rules: {
'no-console': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'sort-imports': ['error', {"ignoreCase": true, "ignoreDeclarationSort": true }],
'@typescript-eslint/no-var-requires': 'off'
Expand Down
11 changes: 4 additions & 7 deletions index-ca-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<script src="https://code.highcharts.com/highcharts.js" type="text/javascript" charset="utf-8"></script>
<script src="https://code.highcharts.com/modules/data.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/highcharts-editor/highcharts-editor.complete.js" type="text/javascript"></script>

<!-- replace `rn` in the url with a version number ("v4_0_30" for example) if desired -->
<script
Expand All @@ -20,24 +21,21 @@
src="https://www.canada.ca/etc/designs/canada/cdts/gcweb/rn/cdts/compiled/wet-en.js"
></script>
<link rel="stylesheet" href="scripts/highcharts-editor/highcharts-editor.min.css" />
<link rel="stylesheet" href="scripts/ramp4/ramp.css" />

<!-- top reference links and no-script fallback -->
<noscript> <%= require('html-loader!../src/assets/static/cdts/refTop.html') %> </noscript>
<script type="text/javascript">
document.write(wet.builder.refTop({}));
</script>
</head>
<body>
<!-- template top and no-script fallback -->
<div id="def-top">d<%= require('html-loader!../src/assets/static/cdts/top-en.html') %></div>
<div id="def-top"></div>

<div id="wb-cont">
<div id="app"></div>
</div>

<!-- template footer and no-script fallback -->
<div id="def-footer"><%= require('html-loader!../src/assets/static/cdts/footer-en.html') %></div>
<div id="def-footer"></div>

<script type="text/javascript">
// URL Parsing for Language Switch
Expand Down Expand Up @@ -104,8 +102,7 @@
document.write(wet.builder.refFooter({}));
</script>

<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
<script type="module" src="/src/main.ts"></script>

<style>
html {
Expand Down
10 changes: 4 additions & 6 deletions index-ca-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<script src="https://code.highcharts.com/highcharts.js" type="text/javascript" charset="utf-8"></script>
<script src="https://code.highcharts.com/modules/data.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/highcharts-editor/highcharts-editor.complete.js" type="text/javascript"></script>

<!-- replace `rn` in the url with a version number ("v4_0_30" for example) if desired -->
<script
Expand All @@ -22,22 +23,20 @@
<link rel="stylesheet" href="scripts/highcharts-editor/highcharts-editor.min.css" />
<link rel="stylesheet" href="scripts/ramp4/ramp.css" />

<!-- top reference links and no-script fallback -->
<noscript> <%= require('html-loader!../src/assets/static/cdts/refTop.html') %> </noscript>
<script type="text/javascript">
document.write(wet.builder.refTop({}));
</script>
</head>
<body>
<!-- template top and no-script fallback -->
<div id="def-top">d<%= require('html-loader!../src/assets/static/cdts/top-fr.html') %></div>
<div id="def-top"></div>

<div id="wb-cont">
<div id="app"></div>
</div>

<!-- template footer and no-script fallback -->
<div id="def-footer"><%= require('html-loader!../src/assets/static/cdts/footer-fr.html') %></div>
<div id="def-footer"></div>

<script type="text/javascript">
// URL Parsing for Language Switch
Expand Down Expand Up @@ -104,8 +103,7 @@
document.write(wet.builder.refFooter({}));
</script>

<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
<script type="module" src="/src/main.ts"></script>

<style>
html {
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<script src="https://code.highcharts.com/highcharts.js" type="text/javascript" charset="utf-8"></script>
<script src="https://code.highcharts.com/modules/data.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/highcharts-editor/highcharts-editor.complete.js" type="text/javascript"></script>

<link rel="icon" href="./favicon.svg" />
<link rel="stylesheet" href="scripts/highcharts-editor/highcharts-editor.min.css" />
Expand All @@ -19,8 +20,6 @@
<!-- built files will be auto injected -->

<script type="module" src="/src/main.ts"></script>
<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
</body>
</html>
<noscript>
Expand Down
Loading

0 comments on commit 7329817

Please sign in to comment.