aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-17 17:15:12 +0200
committerGitHub <noreply@github.com>2020-07-17 18:15:12 +0300
commit0e24af6951fa65d5094ab6da0f182697aab2a6f0 (patch)
treedf34876b8999a641267a09da3eee5f613b681b42 /web_src
parent4fa2e217c171ab321e1c0322f48d70d327e8f596 (diff)
downloadgitea-0e24af6951fa65d5094ab6da0f182697aab2a6f0.tar.gz
gitea-0e24af6951fa65d5094ab6da0f182697aab2a6f0.zip
Update Octicons to v10 (#12240)
* Update Octicons to v10 Besides a few renames, these icons are no longer present in v10 that we've used, so had to change: file-symlink-directory -> file-submodule internal-repo -> repo repo-force-push -> repo-push repo-template-private -> repo-template Fixes: https://github.com/go-gitea/gitea/issues/11889 Ref: https://github.com/primer/octicons/releases/tag/v10.0.0 * add custom sliders svg for removed octicon-settings * apply suggestion * fix triangles and use play on admin dashboard * add custom mirror svg * add missing build files * unify custom svgs * move to octicon-repo-clone to gitea-mirror * use octicon-x on conflicts * tweak timeline icons * tweak comment buttons * update settings icon to octicons v1 * switch to octicon-mirror and octicon-tools * replace two wiki buttons with octicons * remove whitespace in svg sources * Fix filepath basename on Windows for SVG bindata (#12241) * move octicons to devDependencies * move back to dependencies * move svgo to devDependencies again Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js6
-rw-r--r--web_src/js/svg.js8
-rw-r--r--web_src/less/_repository.less21
-rw-r--r--web_src/less/_svg.less8
-rw-r--r--web_src/less/themes/theme-arc-green.less2
-rw-r--r--web_src/svg/gitea-lock-cog.svg5
-rw-r--r--web_src/svg/gitea-lock.svg4
-rw-r--r--web_src/svg/gitea-settings.svg1
-rw-r--r--web_src/svg/gitea-unlock.svg4
9 files changed, 19 insertions, 40 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index db6c665ecf..57258b7175 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2959,13 +2959,13 @@ function initVueComponents() {
if (repo.fork) {
return 'octicon-repo-forked';
} else if (repo.mirror) {
- return 'octicon-repo-clone';
+ return 'octicon-mirror';
} else if (repo.template) {
- return `octicon-repo-template${repo.private ? '-private' : ''}`;
+ return `octicon-repo-template`;
} else if (repo.private) {
return 'octicon-lock';
} else if (repo.internal) {
- return 'octicon-internal-repo';
+ return 'octicon-repo';
}
return 'octicon-repo';
}
diff --git a/web_src/js/svg.js b/web_src/js/svg.js
index 556a191720..ee0b576c31 100644
--- a/web_src/js/svg.js
+++ b/web_src/js/svg.js
@@ -2,32 +2,28 @@ import octiconChevronDown from '../../public/img/svg/octicon-chevron-down.svg';
import octiconChevronRight from '../../public/img/svg/octicon-chevron-right.svg';
import octiconGitMerge from '../../public/img/svg/octicon-git-merge.svg';
import octiconGitPullRequest from '../../public/img/svg/octicon-git-pull-request.svg';
-import octiconInternalRepo from '../../public/img/svg/octicon-internal-repo.svg';
import octiconIssueClosed from '../../public/img/svg/octicon-issue-closed.svg';
import octiconIssueOpened from '../../public/img/svg/octicon-issue-opened.svg';
import octiconLink from '../../public/img/svg/octicon-link.svg';
import octiconLock from '../../public/img/svg/octicon-lock.svg';
+import octiconMirror from '../../public/img/svg/octicon-mirror.svg';
import octiconRepo from '../../public/img/svg/octicon-repo.svg';
-import octiconRepoClone from '../../public/img/svg/octicon-repo-clone.svg';
import octiconRepoForked from '../../public/img/svg/octicon-repo-forked.svg';
import octiconRepoTemplate from '../../public/img/svg/octicon-repo-template.svg';
-import octiconRepoTemplatePrivate from '../../public/img/svg/octicon-repo-template-private.svg';
export const svgs = {
'octicon-chevron-down': octiconChevronDown,
'octicon-chevron-right': octiconChevronRight,
'octicon-git-merge': octiconGitMerge,
'octicon-git-pull-request': octiconGitPullRequest,
- 'octicon-internal-repo': octiconInternalRepo,
'octicon-issue-closed': octiconIssueClosed,
'octicon-issue-opened': octiconIssueOpened,
'octicon-link': octiconLink,
'octicon-lock': octiconLock,
+ 'octicon-mirror': octiconMirror,
'octicon-repo': octiconRepo,
- 'octicon-repo-clone': octiconRepoClone,
'octicon-repo-forked': octiconRepoForked,
'octicon-repo-template': octiconRepoTemplate,
- 'octicon-repo-template-private': octiconRepoTemplatePrivate,
};
const parser = new DOMParser();
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 7bb7d81bab..2277b794c9 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -338,8 +338,7 @@
}
&.octicon-file-directory,
- &.octicon-file-submodule,
- &.octicon-file-symlink-directory {
+ &.octicon-file-submodule {
color: #1e70bf;
}
}
@@ -788,9 +787,7 @@
.badge.badge-commit {
border-color: transparent;
- background: radial-gradient(white 60%, transparent 60%) no-repeat;
- height: 10px;
- margin-top: 11px;
+ background: radial-gradient(white 40%, transparent 40%) no-repeat;
}
.badge {
@@ -805,19 +802,18 @@
margin-right: 8px;
color: #444;
align-items: center;
+ justify-content: center;
.svg {
- width: 28px;
- height: 28px;
- text-align: center;
- line-height: 28px;
- padding: 4px;
+ width: 24px;
+ height: 24px;
+ padding: 3px;
&.octicon-circle-slash {
color: #bd2c00;
}
- &.octicon-primitive-dot {
+ &.octicon-dot-fill {
color: #6cc644;
}
@@ -959,7 +955,8 @@
&.action {
margin-top: 6px;
- margin-left: 10px;
+ padding-left: 10px;
+ padding-right: 3px;
}
}
}
diff --git a/web_src/less/_svg.less b/web_src/less/_svg.less
index 1d58e239df..b17b9a8b32 100644
--- a/web_src/less/_svg.less
+++ b/web_src/less/_svg.less
@@ -6,12 +6,4 @@
.middle & {
vertical-align: middle;
}
-
- // https://github.com/go-gitea/gitea/pull/11771
- // https://github.com/go-gitea/gitea/pull/11801
- // https://bugzilla.mozilla.org/show_bug.cgi?id=608812
- &.octicon-internal-repo {
- // via https://bugzilla.mozilla.org/show_bug.cgi?id=1165282#c3
- shape-rendering: crispEdges;
- }
}
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index ee294d3fac..49d9821cdd 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -1015,7 +1015,7 @@ a.ui.basic.green.label:hover {
}
.repository.view.issue .comment-list .timeline-item .badge.badge-commit {
- background: radial-gradient(#383c4a 60%, transparent 60%) no-repeat;
+ background: radial-gradient(#383c4a 40%, transparent 40%) no-repeat;
}
.repository .comment.form .content .form:after {
diff --git a/web_src/svg/gitea-lock-cog.svg b/web_src/svg/gitea-lock-cog.svg
index 13e374a9d1..da8e9540a3 100644
--- a/web_src/svg/gitea-lock-cog.svg
+++ b/web_src/svg/gitea-lock-cog.svg
@@ -1,4 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
- <path d="M12.5 7h-.75V4.75C11.75 2.131 9.619 0 7 0S2.25 2.131 2.25 4.75V7H1.5A1.5 1.5 0 000 8.5v6A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-6A1.5 1.5 0 0012.5 7zM9.25 7h-4.5V4.75C4.75 3.51 5.76 2.5 7 2.5s2.25 1.01 2.25 2.25z"/>
- <path d="M6.433 10.244q-.508.237-.7.765-.192.527.045 1.036.237.508.764.7.528.192 1.036-.045.509-.237.7-.765.193-.527-.044-1.036-.237-.508-.765-.7-.528-.192-1.036.045zM4.765 8.032l1.065-.497q.057-.027.128-.013.07.014.107.067l.548.825q.302-.03.524-.017.162-.28.423-.822.035-.074.097-.103.063-.03.13-.009.239.047.74.234.502.186.551.292.027.057.015.145l-.21.903q.21.16.386.352.689-.228.958-.277.15-.03.214.11l.497 1.065q.031.067.014.136-.017.07-.077.103l-.82.546q.032.271.023.515l.83.437q.065.027.098.1.032.067.003.144-.265.86-.436 1.167-.033.056-.095.085-.058.027-.128.013-.135-.025-.433-.096-.3-.07-.46-.1-.179.24-.382.417l.28.938q.019.067-.014.13-.032.061-.094.09l-1.065.497q-.058.026-.128.013-.071-.014-.105-.062l-.55-.83q-.253.036-.53.019-.183.32-.422.822-.035.074-.093.101-.048.023-.13.009-.231-.045-.736-.233-.505-.187-.554-.293-.03-.062-.01-.147l.204-.901q-.209-.16-.386-.352-.688.228-.957.277-.15.03-.215-.11l-.496-1.065q-.032-.067-.014-.136.017-.07.077-.104l.82-.545q-.033-.271-.024-.515l-.83-.442q-.064-.023-.098-.095-.029-.062-.008-.142.283-.885.447-1.172.023-.051.09-.082.057-.027.128-.014.134.026.433.096.299.071.459.102.182-.237.378-.416l-.275-.94q-.02-.067.013-.13.033-.061.095-.09z" fill="#fff" fill-rule="evenodd" stroke-width=".2"/>
-</svg> \ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path d="M12.5 7h-.75V4.75C11.75 2.131 9.619 0 7 0S2.25 2.131 2.25 4.75V7H1.5A1.5 1.5 0 000 8.5v6A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-6A1.5 1.5 0 0012.5 7zM9.25 7h-4.5V4.75C4.75 3.51 5.76 2.5 7 2.5s2.25 1.01 2.25 2.25z"/><path d="M6.433 10.244q-.508.237-.7.765-.192.527.045 1.036.237.508.764.7.528.192 1.036-.045.509-.237.7-.765.193-.527-.044-1.036-.237-.508-.765-.7-.528-.192-1.036.045zM4.765 8.032l1.065-.497q.057-.027.128-.013.07.014.107.067l.548.825q.302-.03.524-.017.162-.28.423-.822.035-.074.097-.103.063-.03.13-.009.239.047.74.234.502.186.551.292.027.057.015.145l-.21.903q.21.16.386.352.689-.228.958-.277.15-.03.214.11l.497 1.065q.031.067.014.136-.017.07-.077.103l-.82.546q.032.271.023.515l.83.437q.065.027.098.1.032.067.003.144-.265.86-.436 1.167-.033.056-.095.085-.058.027-.128.013-.135-.025-.433-.096-.3-.07-.46-.1-.179.24-.382.417l.28.938q.019.067-.014.13-.032.061-.094.09l-1.065.497q-.058.026-.128.013-.071-.014-.105-.062l-.55-.83q-.253.036-.53.019-.183.32-.422.822-.035.074-.093.101-.048.023-.13.009-.231-.045-.736-.233-.505-.187-.554-.293-.03-.062-.01-.147l.204-.901q-.209-.16-.386-.352-.688.228-.957.277-.15.03-.215-.11l-.496-1.065q-.032-.067-.014-.136.017-.07.077-.104l.82-.545q-.033-.271-.024-.515l-.83-.442q-.064-.023-.098-.095-.029-.062-.008-.142.283-.885.447-1.172.023-.051.09-.082.057-.027.128-.014.134.026.433.096.299.071.459.102.182-.237.378-.416l-.275-.94q-.02-.067.013-.13.033-.061.095-.09z" fill="#fff" fill-rule="evenodd" stroke-width=".2"/></svg> \ No newline at end of file
diff --git a/web_src/svg/gitea-lock.svg b/web_src/svg/gitea-lock.svg
index 2511b94331..0508e3bbd5 100644
--- a/web_src/svg/gitea-lock.svg
+++ b/web_src/svg/gitea-lock.svg
@@ -1,3 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
- <path d="M12.5 7h-.75V4.75A4.756 4.756 0 007 0a4.756 4.756 0 00-4.75 4.75V7H1.5A1.5 1.5 0 000 8.5v6A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-6A1.5 1.5 0 0012.5 7zM9.25 7h-4.5V4.75C4.75 3.51 5.76 2.5 7 2.5s2.25 1.01 2.25 2.25z"/>
-</svg> \ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path d="M12.5 7h-.75V4.75A4.756 4.756 0 007 0a4.756 4.756 0 00-4.75 4.75V7H1.5A1.5 1.5 0 000 8.5v6A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-6A1.5 1.5 0 0012.5 7zM9.25 7h-4.5V4.75C4.75 3.51 5.76 2.5 7 2.5s2.25 1.01 2.25 2.25z"/></svg> \ No newline at end of file
diff --git a/web_src/svg/gitea-settings.svg b/web_src/svg/gitea-settings.svg
new file mode 100644
index 0000000000..367390bf67
--- /dev/null
+++ b/web_src/svg/gitea-settings.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M32 448h64v-96H32v96zM96 64H32v160h64V64zm160 0h-64v64h64V64zM0 320h128v-64H0v64zm192 128h64V256h-64v192zm-32-224h128v-64H160v64zM416 64h-64v192h64V64zm-96 224v64h128v-64H320zm32 160h64v-64h-64v64z"/></svg> \ No newline at end of file
diff --git a/web_src/svg/gitea-unlock.svg b/web_src/svg/gitea-unlock.svg
index afaa9f03de..1b32b8c275 100644
--- a/web_src/svg/gitea-unlock.svg
+++ b/web_src/svg/gitea-unlock.svg
@@ -1,3 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
- <path d="M12.5 8H4.75V4.778c0-1.237.99-2.265 2.228-2.278A2.253 2.253 0 019.25 4.75v.5c0 .416.334.75.75.75h1c.416 0 .75-.334.75-.75v-.5c0-2.625-2.14-4.76-4.766-4.75C4.36.01 2.25 2.172 2.25 4.797V8H1.5A1.5 1.5 0 000 9.5v5A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-5A1.5 1.5 0 0012.5 8z"/>
-</svg> \ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path d="M12.5 8H4.75V4.778c0-1.237.99-2.265 2.228-2.278A2.253 2.253 0 019.25 4.75v.5c0 .416.334.75.75.75h1c.416 0 .75-.334.75-.75v-.5c0-2.625-2.14-4.76-4.766-4.75C4.36.01 2.25 2.172 2.25 4.797V8H1.5A1.5 1.5 0 000 9.5v5A1.5 1.5 0 001.5 16h11a1.5 1.5 0 001.5-1.5v-5A1.5 1.5 0 0012.5 8z"/></svg> \ No newline at end of file