Skip to content

Commit

Permalink
Merge pull request #295 from yileifeng/vite-build
Browse files Browse the repository at this point in the history
Upgrade build from Vue CLI to Vite
  • Loading branch information
yileifeng authored Jul 11, 2024
2 parents a6f7431 + 33ec4c6 commit 1b7260e
Show file tree
Hide file tree
Showing 64 changed files with 5,183 additions and 37,647 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}#
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RAMP Storylines Editor (formerly StoryRAMP)
# RAMP Storylines Editor

RAMP Storylines Editor is an implementation of [RAMP4](https://github.com/ramp4-pcar4/ramp4-pcar4) (the mapping framework), [RAMP4 Config Editor](https://github.com/ramp4-pcar4/config-editor) (used to create map configurations), [Highcharts Editor](https://www.highcharts.com/blog/products/highcharts-editor/) (used to create interactive charts and graphs), and [Storylines](https://github.com/ramp4-pcar4/story-ramp) (used to host and display the created product).

Expand All @@ -23,7 +23,7 @@ npm install
### Compiles and hot-reloads for development

```
npm run serve
npm run dev
```

### Compiles and minifies for production
Expand Down
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
11 changes: 4 additions & 7 deletions public/index-ca-en.html → 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 public/index-ca-fr.html → 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
4 changes: 2 additions & 2 deletions public/index.html → 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 @@ -18,8 +19,7 @@
<div id="app"></div>
<!-- built files will be auto injected -->

<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>
</body>
</html>
<noscript>
Expand Down
Loading

0 comments on commit 1b7260e

Please sign in to comment.