Skip to content

Commit

Permalink
move semantic.dropdown.custom.js to webpack
Browse files Browse the repository at this point in the history
Also disabled a annoying linter rule which insisted that imports can not
contain a file extension.

Fixes: go-gitea#8971
  • Loading branch information
silverwind committed Nov 19, 2019
1 parent eb0359c commit ce88d38
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ globals:
Vue: false

rules:
arrow-body-style: [0]
camelcase: [0]
comma-dangle: [2, only-multiline]
consistent-return: [0]
default-case: [0]
func-names: [0]
import/extensions: [0]
max-len: [0]
newline-per-chained-call: [0]
arrow-body-style: [0]
no-alert: [0]
no-continue: [0]
no-mixed-operators: [0]
Expand Down
2 changes: 1 addition & 1 deletion public/js/gitgraph.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/gitgraph.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions public/js/index.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/vendor/librejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<td><a href="https://github.com/Semantic-Org/Semantic-UI/archive/2.3.1.tar.gz">semantic-UI-2.3.1.tar.gz</a></td>
</tr>
<tr>
<td><a href="../js/semantic.dropdown.custom.js">semantic.dropdown.custom.js</a></td>
<td><a href="../js/index.js">semantic.dropdown</a></td>
<td><a href="https://semantic-ui.mit-license.org/">Expat</a></td>
<td><a href="https://github.com/go-gitea/gitea/tree/master/public/js">semantic.dropdown.custom.js</a></td>
<td><a href="https://github.com/go-gitea/gitea/tree/master/web_src/vendor/semantic.dropdown">semantic.dropdown.custom.js</a></td>
</tr>
<tr>
<td><a href="../js/index.js">index.js</a></td>
Expand Down
1 change: 0 additions & 1 deletion templates/base/footer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@

<!-- JavaScript -->
<script src="{{StaticUrlPrefix}}/vendor/plugins/semantic/semantic.min.js"></script>
<script src="{{StaticUrlPrefix}}/js/semantic.dropdown.custom.js?v={{MD5 AppVer}}"></script>
<script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
{{if .EnableHeatmap}}
<script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script>
Expand Down
1 change: 0 additions & 1 deletion templates/pwa/serviceworker_js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var urlsToCache = [
'{{StaticUrlPrefix}}/vendor/plugins/semantic/semantic.min.js',
'{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/js/gitgraph.js?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/js/semantic.dropdown.custom.js?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js',
'{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js',
'{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js',
Expand Down
5 changes: 3 additions & 2 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
/* exported timeAddManual, toggleStopwatch, cancelStopwatch, initHeatmap */
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */

import './publicPath';
import './gitGraph';
import './publicPath.js';
import './gitGraph.js';
import '../vendor/semantic.dropdown/semantic.dropdown.custom.js';

function htmlEncode(text) {
return jQuery('<div />').text(text).html();
Expand Down
File renamed without changes.

0 comments on commit ce88d38

Please sign in to comment.