Skip to content

Commit 7bc8c6b

Browse files
silverwindtechknowlogick
authored andcommitted
move semantic.dropdown.custom.js to webpack (#9064)
* move semantic.dropdown.custom.js to webpack Also disabled a annoying linter rule which insisted that imports can not contain a file extension. Fixes: #8971 * reorganize web_src files and rebuild * restart ci
1 parent f0aaffe commit 7bc8c6b

16 files changed

+455
-468
lines changed

.eslintignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/public/js/semantic.dropdown.custom.js
2-
/web_src/js/vendor/**
1+
/web_src/js/semanticDropdown.js

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ globals:
2525
Vue: false
2626

2727
rules:
28+
arrow-body-style: [0]
2829
camelcase: [0]
2930
comma-dangle: [2, only-multiline]
3031
consistent-return: [0]
3132
default-case: [0]
3233
func-names: [0]
34+
import/extensions: [0]
3335
max-len: [0]
3436
newline-per-chained-call: [0]
35-
arrow-body-style: [0]
3637
no-alert: [0]
3738
no-continue: [0]
3839
no-mixed-operators: [0]

public/js/gitgraph.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/gitgraph.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/vendor/librejs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
<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>
3232
</tr>
3333
<tr>
34-
<td><a href="../js/semantic.dropdown.custom.js">semantic.dropdown.custom.js</a></td>
34+
<td><a href="../js/index.js">semantic.dropdown</a></td>
3535
<td><a href="https://semantic-ui.mit-license.org/">Expat</a></td>
36-
<td><a href="https://github.com/go-gitea/gitea/tree/master/public/js">semantic.dropdown.custom.js</a></td>
36+
<td><a href="https://github.com/go-gitea/gitea/tree/master/web_src/vendor/semantic.dropdown">semantic.dropdown.custom.js</a></td>
3737
</tr>
3838
<tr>
3939
<td><a href="../js/index.js">index.js</a></td>

templates/base/footer.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118

119119
<!-- JavaScript -->
120120
<script src="{{StaticUrlPrefix}}/vendor/plugins/semantic/semantic.min.js"></script>
121-
<script src="{{StaticUrlPrefix}}/js/semantic.dropdown.custom.js?v={{MD5 AppVer}}"></script>
122121
<script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
123122
{{if .EnableHeatmap}}
124123
<script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script>

templates/pwa/serviceworker_js.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var urlsToCache = [
77
'{{StaticUrlPrefix}}/vendor/plugins/semantic/semantic.min.js',
88
'{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}',
99
'{{StaticUrlPrefix}}/js/gitgraph.js?v={{MD5 AppVer}}',
10-
'{{StaticUrlPrefix}}/js/semantic.dropdown.custom.js?v={{MD5 AppVer}}',
1110
'{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js',
1211
'{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js',
1312
'{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js',

web_src/vendor/gitgraph.js/gitgraph.custom.css renamed to web_src/css/gitGraph.css

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* This is a customized version of https://github.com/bluef/gitgraph.js/blob/master/gitgraph.css
2+
Changes include the removal of `body` and `em` styles */
13
#git-graph-container, #rel-container {float:left;}
24
#rel-container {max-width:30%; overflow-x:auto;}
35
#git-graph-container {overflow-x:auto; width:100%}

0 commit comments

Comments
 (0)