mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-05 20:54:27 +08:00
Move OVE from asset pipeline to vendor/assets [SCI-11322]
This commit is contained in:
parent
fd0bdce85c
commit
3d1d22709d
8 changed files with 216 additions and 2247 deletions
|
@ -1,2 +0,0 @@
|
||||||
import '@teselagen/ove';
|
|
||||||
import '@teselagen/ove/style.css';
|
|
|
@ -51,6 +51,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (!window.createVectorEditor) {
|
||||||
|
alert('Open Vector Editor JS missing!');
|
||||||
|
}
|
||||||
|
|
||||||
let editorConfig = {
|
let editorConfig = {
|
||||||
onSave: this.saveFile,
|
onSave: this.saveFile,
|
||||||
generatePng: true,
|
generatePng: true,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<%= stylesheet_link_tag 'sn_icon_font' %>
|
<%= stylesheet_link_tag 'sn_icon_font' %>
|
||||||
<%= stylesheet_link_tag 'application' %>
|
<%= stylesheet_link_tag 'application' %>
|
||||||
<%= stylesheet_link_tag 'tailwind' %>
|
<%= stylesheet_link_tag 'tailwind' %>
|
||||||
<%= stylesheet_link_tag 'open_vector_editor' %>
|
<%= stylesheet_link_tag '/vendor/ove/ove.css' %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
ove-warning="<%= defined?(@warnings) ? @warnings : '' %>"
|
ove-warning="<%= defined?(@warnings) ? @warnings : '' %>"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<%= javascript_include_tag 'open_vector_editor' %>
|
<%= javascript_include_tag '/vendor/ove/ove.js' %>
|
||||||
<%= javascript_include_tag 'vue_components_open_vector_editor' %>
|
<%= javascript_include_tag 'vue_components_open_vector_editor' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -16,7 +16,6 @@ const entryList = {
|
||||||
emoji_button: './app/javascript/packs/emoji_button.js',
|
emoji_button: './app/javascript/packs/emoji_button.js',
|
||||||
fontawesome: './app/javascript/packs/fontawesome.scss',
|
fontawesome: './app/javascript/packs/fontawesome.scss',
|
||||||
prism: './app/javascript/packs/prism.js',
|
prism: './app/javascript/packs/prism.js',
|
||||||
open_vector_editor: './app/javascript/packs/open_vector_editor.js',
|
|
||||||
tiny_mce: './app/javascript/packs/tiny_mce.js',
|
tiny_mce: './app/javascript/packs/tiny_mce.js',
|
||||||
tiny_mce_styles: './app/javascript/packs/tiny_mce_styles.scss',
|
tiny_mce_styles: './app/javascript/packs/tiny_mce_styles.scss',
|
||||||
tui_image_editor: './app/javascript/packs/tui_image_editor.js',
|
tui_image_editor: './app/javascript/packs/tui_image_editor.js',
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.20.2",
|
||||||
"@fortawesome/fontawesome-free": "^5.2.0",
|
"@fortawesome/fontawesome-free": "^5.2.0",
|
||||||
"@joeattardi/emoji-button": "^4.6.2",
|
"@joeattardi/emoji-button": "^4.6.2",
|
||||||
"@teselagen/ove": "^0.3.23",
|
|
||||||
"@vue/compiler-sfc": "^3.3.4",
|
"@vue/compiler-sfc": "^3.3.4",
|
||||||
"@vuepic/vue-datepicker": "^7.2.0",
|
"@vuepic/vue-datepicker": "^7.2.0",
|
||||||
"@vueuse/components": "^10.5.0",
|
"@vueuse/components": "^10.5.0",
|
||||||
|
|
17
public/vendor/ove/ove.css
vendored
Normal file
17
public/vendor/ove/ove.css
vendored
Normal file
File diff suppressed because one or more lines are too long
170
public/vendor/ove/ove.js
vendored
Normal file
170
public/vendor/ove/ove.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue