Skip to content

Commit

Permalink
move ace dependency to yarn (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jul 18, 2024
1 parent 06b2f14 commit 90300cb
Show file tree
Hide file tree
Showing 353 changed files with 8 additions and 440 deletions.
2 changes: 2 additions & 0 deletions apps/dashboard/app/javascript/editor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

import ace from 'ace-code/esm-resolver';

const KEY_PREFIX = "ood_editor_store_";

function normalizeKey(key) {
Expand Down
3 changes: 0 additions & 3 deletions apps/dashboard/app/views/files/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,3 @@
</div>
<pre class="flex-grow-1" id="editor" data-path="<%= @path %>" data-api="<%= OodAppkit.files.api(path: @path, fs: @filesystem) %>"><%= @content %></pre>
</div>

<script src="<%= "#{ENV['RAILS_RELATIVE_URL_ROOT']}/ace/1.2.6/ace.js" %>" type="text/javascript" charset="utf-8"></script>
<script src="<%= "#{ENV['RAILS_RELATIVE_URL_ROOT']}/ace/1.2.6/ext-modelist.js" %>" type="text/javascript" charset="utf-8"></script>
1 change: 1 addition & 0 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"oboe": "^2.1.5",
"sass": "^1.50.0",
"sweetalert2": "10.16.9",
"ace-code": "^1.35.0",
"uppy": "^3.27.0"
},
"scripts": {
Expand Down
14 changes: 0 additions & 14 deletions apps/dashboard/public/ace/1.2.6/ace.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-beautify.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-chromevox.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-elastic_tabstops_lite.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-emmet.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-error_marker.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-keybinding_menu.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-language_tools.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/dashboard/public/ace/1.2.6/ext-linking.js

This file was deleted.

Loading

0 comments on commit 90300cb

Please sign in to comment.