Skip to content

Commit

Permalink
feat: localize iconfont and fuck iconfont.cn
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirozx committed Jul 6, 2022
1 parent 7f1e698 commit 3efc2c4
Show file tree
Hide file tree
Showing 10 changed files with 609 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/styles/customize/icon-pack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
&forest {
@include announcement-icon("\e6c2", "\e6c2", "\e6c2", "forest", normal);
@include getting-started-icon("\e68d", "\e68d", "\e68d", "forest", normal);
@include home-icon("\e6ca", "\e6bf", "\e6cf", "forest", normal);
@include home-icon("\e6ca", "\e6de", "\e6de", "forest", normal);
@include notification-icon("\e6db", "\e6d5", "\e6d8", "forest", normal);
@include local-timeline-icon("\e6d0", "\e6cc", "\e6d1", "forest", normal);
@include fed-timeline-icon("\e6d4", "\e6dd", "\e6dc", "forest", normal);
Expand Down
3 changes: 2 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
= stylesheet_link_tag 'https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400;500;600;700;900&display=swap', skip_pipeline: true, media: 'all'

- if current_user.setting_icon_pack == 'forest'
= stylesheet_link_tag 'https://at.alicdn.com/t/font_3453204_g1r9b59fnds.css', skip_pipeline: true, media: 'all'
-# = stylesheet_link_tag 'https://at.alicdn.com/t/font_3453204_g1r9b59fnds.css', skip_pipeline: true, media: 'all'
= stylesheet_link_tag '/plugins/icon-forest/iconfont.css?t=1656835877240', skip_pipeline: true, media: 'all', id: 'icon-forest-style'

= yield :header_tags

Expand Down
190 changes: 190 additions & 0 deletions public/plugins/icon-forest/iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
@font-face {
font-family: "forest"; /* Project id 3453204 */
src: url('iconfont.eot?t=1656835877240'); /* IE9 */
src: url('iconfont.eot?t=1656835877240#iefix') format('embedded-opentype'), /* IE6-IE8 */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wBw0G9WB2OnwT2ACPoO/9cpwS1TOkQoY7BAbuUKwx5JIttbTO26ZFjqy5x5dpnmOox0ZY6lrnb6YNq9DvCOdOu6ZgTqnEu09Fg+aSqImnt+DceGiI2lKlkgSTc02+2UQbDii3dtB98fWRkyf4a5X7rBPahPo2ic1NI5bsdYNOqNFLgIgi4gPwrYVdXnQaQ5bBTsCo1oQ9qhuLPC5wjZMX1IPqVGvg1hq2Oe49UURAAAA') format('woff2'),
url('iconfont.woff?t=1656835877240') format('woff'),
url('iconfont.ttf?t=1656835877240') format('truetype'),
url('iconfont.svg?t=1656835877240#forest') format('svg');
}

.forest {
font-family: "forest" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-forest-home-hover:before {
content: "\e6de";
}

.icon-forest-home-normal:before {
content: "\e6df";
}

.icon-forest-daohang:before {
content: "\e68d";
}

.icon-forest-a-liebiaoweixuanzhong:before {
content: "\e6b6";
}

.icon-forest-a-liebiaoxuanzhong:before {
content: "\e6b7";
}

.icon-forest-a-liebiaoshubiaoxuanfu:before {
content: "\e6b8";
}

.icon-forest-a-shuqianshubiaoxuanfu:before {
content: "\e6b9";
}

.icon-forest-a-shuqianweixuanzhong:before {
content: "\e6ba";
}

.icon-forest-a-shuqianxuanzhong:before {
content: "\e6bb";
}

.icon-forest-a-gonggaoshubiaoxuanfu:before {
content: "\e6bc";
}

.icon-forest-a-guanzhuguanliweixuanzhong:before {
content: "\e6bd";
}

.icon-forest-a-guanzhuguanlixuanzhong:before {
content: "\e6be";
}

.icon-forest-a-zhuyeshubiaoxuanfu:before {
content: "\e6bf";
}

.icon-forest-a-sixinweixuanzhong:before {
content: "\e6c0";
}

.icon-forest-a-liebiaoshubiaoxuanfu1:before {
content: "\e6c1";
}

.icon-forest-a-gonggaoweixuanze:before {
content: "\e6c2";
}

.icon-forest-a-xihuanxuanzhong:before {
content: "\e6c3";
}

.icon-forest-a-jibenshezhishubiaoxuanfu:before {
content: "\e6c4";
}

.icon-forest-a-xihuanshubiaoxuanfu:before {
content: "\e6c5";
}

.icon-forest-a-tansuoshubiaoxuanfu:before {
content: "\e6c6";
}

.icon-forest-a-tansuoshubiaoxuanfubeifen:before {
content: "\e6c7";
}

.icon-forest-a-jibenshezhiweixuanze:before {
content: "\e6c8";
}

.icon-forest-a-xihuanweixuanzhong:before {
content: "\e6c9";
}

.icon-forest-a-zhuyeweixuanze:before {
content: "\e6ca";
}

.icon-forest-a-liebiaoxuanzhong1:before {
content: "\e6cb";
}

.icon-forest-a-benzhanshubiaoxuanfu:before {
content: "\e6cc";
}

.icon-forest-a-guanzhuguanlishubiaoxuanfu:before {
content: "\e6cd";
}

.icon-forest-a-tansuoxuanzhong:before {
content: "\e6ce";
}

.icon-forest-a-zhuyexuanzhong:before {
content: "\e6cf";
}

.icon-forest-a-benzhanweixuanzhong:before {
content: "\e6d0";
}

.icon-forest-a-benzhanxuanzhong:before {
content: "\e6d1";
}

.icon-forest-a-liebiaoweixuanzhong1:before {
content: "\e6d2";
}

.icon-forest-a-sixinxuanzhong:before {
content: "\e6d3";
}

.icon-forest-a-kuazhanweixuanzhong:before {
content: "\e6d4";
}

.icon-forest-a-tongzhishubiaoxuanfu:before {
content: "\e6d5";
}

.icon-forest-a-shouxuanxiangweixuanze:before {
content: "\e6d6";
}

.icon-forest-a-shouxuanxiangxuanzhong:before {
content: "\e6d7";
}

.icon-forest-a-tongzhixuanzhong:before {
content: "\e6d8";
}

.icon-forest-a-sixinshubiaoxuanfu:before {
content: "\e6d9";
}

.icon-forest-a-shouxuanxiangshubiaoxuanfu:before {
content: "\e6da";
}

.icon-forest-a-tongzhiweixuanze:before {
content: "\e6db";
}

.icon-forest-a-kuazhanxuanzhong:before {
content: "\e6dc";
}

.icon-forest-a-kuazhanshubiaoxuanfu:before {
content: "\e6dd";
}

Binary file added public/plugins/icon-forest/iconfont.eot
Binary file not shown.
1 change: 1 addition & 0 deletions public/plugins/icon-forest/iconfont.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3efc2c4

Please sign in to comment.