├── favicon.ico ├── images ├── bg2.jpg ├── tile.png ├── splitter.png ├── using │ ├── 青云.png │ ├── ali.png │ ├── hwl.png │ ├── qmai.png │ ├── 中海地产.png │ ├── 南开大学.png │ ├── 合智互联.png │ ├── 完美世界.png │ ├── 柳钢集团.png │ ├── 民生银行.png │ ├── 良医汇.png │ ├── 跨越速运.png │ ├── 金山云.png │ ├── 销售易.jpg │ ├── 阿里云.png │ ├── 零跑汽车.png │ ├── game2.png │ ├── gehua.jpg │ ├── hengrui.png │ ├── huolala.png │ ├── ifanr.png │ ├── jinke.png │ ├── longhu.png │ ├── meituan.png │ ├── nezha.webp │ ├── telecom.png │ ├── yashan.png │ ├── yongyou.png │ ├── yuexiu.png │ ├── chinaccs.png │ ├── ideamake.png │ ├── transsion.png │ ├── zhaoshang.png │ ├── geosciences.png │ ├── logo-anker-in.png │ ├── shanghai_bank.png │ ├── tesla.svg │ ├── leke.svg │ └── 宁德时代.svg ├── sponsor │ ├── sw.png │ ├── me.jpeg │ ├── baishi.png │ ├── hlhutu.jpeg │ ├── xiaodong.jpeg │ └── idea.svg ├── home │ ├── floaters-1.png │ ├── floaters-2.png │ ├── right.svg │ ├── right2.svg │ ├── extend.svg │ ├── art.svg │ ├── resize.svg │ └── hold.svg ├── file │ ├── below.svg │ ├── finder.svg │ └── file.svg ├── view │ ├── text.svg │ ├── date.svg │ ├── markdown.svg │ ├── white.svg │ ├── mobile-html.svg │ ├── code.svg │ ├── ovr.svg │ ├── link.svg │ ├── swf.svg │ ├── download.svg │ ├── image.svg │ ├── link-dialog.svg │ ├── map.svg │ ├── attachment-dialog.svg │ ├── attachment.svg │ └── html.svg ├── component │ ├── slider.svg │ ├── white.svg │ ├── textarea.svg │ ├── bool.svg │ ├── tabTableRefer.svg │ ├── choice.svg │ ├── empty.svg │ ├── tabTableAdd.svg │ ├── codeEditor.svg │ ├── divide.svg │ ├── referenceTable.svg │ ├── input.svg │ ├── tpl.svg │ ├── sign.svg │ ├── hidden.svg │ ├── referenceTree.svg │ ├── htmlEditor.svg │ ├── number.svg │ ├── tags.svg │ ├── date.svg │ ├── map.svg │ ├── autoComplete.svg │ ├── tabTree.svg │ ├── attachment.svg │ └── checkbox.svg ├── db │ ├── oracle.svg │ ├── mongoDB.svg │ ├── more.svg │ ├── custom.svg │ ├── polardb.svg │ ├── h2.svg │ ├── spanner.svg │ ├── sybase.svg │ ├── mysql.svg │ ├── api.svg │ ├── kingbase.svg │ └── postgreSQL.svg ├── gitee.svg ├── git.svg ├── top.svg ├── github.svg ├── gitcode.svg └── footer.svg ├── history ├── 1.0.png ├── 1.1.png └── 1.2.png ├── assets ├── Courier New.ttf ├── prism │ ├── prism-okaidia.min.css │ ├── prism-java.min.js │ └── prism.min.css ├── logo2.svg ├── logo.svg ├── github.svg ├── split.min.js └── angular-route.min.js ├── site.txt ├── page ├── extra │ ├── extra.js │ └── extra.html ├── doc │ ├── doc.js │ └── doc.html ├── contrast │ ├── contrast.js │ └── contrast.html ├── component │ ├── component.html │ └── component.js └── home.js ├── README.md ├── app.js └── app.css /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/favicon.ico -------------------------------------------------------------------------------- /images/bg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/bg2.jpg -------------------------------------------------------------------------------- /history/1.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/history/1.0.png -------------------------------------------------------------------------------- /history/1.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/history/1.1.png -------------------------------------------------------------------------------- /history/1.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/history/1.2.png -------------------------------------------------------------------------------- /images/tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/tile.png -------------------------------------------------------------------------------- /images/splitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/splitter.png -------------------------------------------------------------------------------- /images/using/青云.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/青云.png -------------------------------------------------------------------------------- /images/sponsor/sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/sponsor/sw.png -------------------------------------------------------------------------------- /images/using/ali.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/ali.png -------------------------------------------------------------------------------- /images/using/hwl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/hwl.png -------------------------------------------------------------------------------- /images/using/qmai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/qmai.png -------------------------------------------------------------------------------- /images/using/中海地产.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/中海地产.png -------------------------------------------------------------------------------- /images/using/南开大学.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/南开大学.png -------------------------------------------------------------------------------- /images/using/合智互联.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/合智互联.png -------------------------------------------------------------------------------- /images/using/完美世界.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/完美世界.png -------------------------------------------------------------------------------- /images/using/柳钢集团.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/柳钢集团.png -------------------------------------------------------------------------------- /images/using/民生银行.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/民生银行.png -------------------------------------------------------------------------------- /images/using/良医汇.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/良医汇.png -------------------------------------------------------------------------------- /images/using/跨越速运.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/跨越速运.png -------------------------------------------------------------------------------- /images/using/金山云.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/金山云.png -------------------------------------------------------------------------------- /images/using/销售易.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/销售易.jpg -------------------------------------------------------------------------------- /images/using/阿里云.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/阿里云.png -------------------------------------------------------------------------------- /images/using/零跑汽车.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/零跑汽车.png -------------------------------------------------------------------------------- /assets/Courier New.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/assets/Courier New.ttf -------------------------------------------------------------------------------- /images/sponsor/me.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/sponsor/me.jpeg -------------------------------------------------------------------------------- /images/using/game2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/game2.png -------------------------------------------------------------------------------- /images/using/gehua.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/gehua.jpg -------------------------------------------------------------------------------- /images/using/hengrui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/hengrui.png -------------------------------------------------------------------------------- /images/using/huolala.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/huolala.png -------------------------------------------------------------------------------- /images/using/ifanr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/ifanr.png -------------------------------------------------------------------------------- /images/using/jinke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/jinke.png -------------------------------------------------------------------------------- /images/using/longhu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/longhu.png -------------------------------------------------------------------------------- /images/using/meituan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/meituan.png -------------------------------------------------------------------------------- /images/using/nezha.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/nezha.webp -------------------------------------------------------------------------------- /images/using/telecom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/telecom.png -------------------------------------------------------------------------------- /images/using/yashan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/yashan.png -------------------------------------------------------------------------------- /images/using/yongyou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/yongyou.png -------------------------------------------------------------------------------- /images/using/yuexiu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/yuexiu.png -------------------------------------------------------------------------------- /images/home/floaters-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/home/floaters-1.png -------------------------------------------------------------------------------- /images/home/floaters-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/home/floaters-2.png -------------------------------------------------------------------------------- /images/sponsor/baishi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/sponsor/baishi.png -------------------------------------------------------------------------------- /images/sponsor/hlhutu.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/sponsor/hlhutu.jpeg -------------------------------------------------------------------------------- /images/using/chinaccs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/chinaccs.png -------------------------------------------------------------------------------- /images/using/ideamake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/ideamake.png -------------------------------------------------------------------------------- /images/using/transsion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/transsion.png -------------------------------------------------------------------------------- /images/using/zhaoshang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/zhaoshang.png -------------------------------------------------------------------------------- /images/sponsor/xiaodong.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/sponsor/xiaodong.jpeg -------------------------------------------------------------------------------- /images/using/geosciences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/geosciences.png -------------------------------------------------------------------------------- /images/using/logo-anker-in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/logo-anker-in.png -------------------------------------------------------------------------------- /images/using/shanghai_bank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erupts/erupt-site/master/images/using/shanghai_bank.png -------------------------------------------------------------------------------- /site.txt: -------------------------------------------------------------------------------- 1 | http://www.erupt.xyz/ 2 | https://www.erupt.xyz/#!/contrast 3 | https://www.erupt.xyz/#!/module 4 | https://www.erupt.xyz/#!/doc 5 | https://www.erupt.xyz/demo 6 | -------------------------------------------------------------------------------- /page/extra/extra.js: -------------------------------------------------------------------------------- 1 | app.controller("extra", function ($scope, dataService) { 2 | 3 | dataService.eruptReq("/demo/extra_module", null, function (data) { 4 | $scope.modules = data 5 | }) 6 | 7 | }) 8 | -------------------------------------------------------------------------------- /images/file/below.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /images/view/text.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # erupt framework 官方网站源码 2 | 3 | ### 网站地址 4 | https://erupt.xyz 5 | 6 | 7 | ### 接口地址 8 | https://erupt.xyz/demo/zeta-doc/demo.html 9 | 10 | ### 主要技术 11 | AngularJS、 Jquery、 bootstrap 4、 animate.css、 prism 12 | 13 | ### 历史版本截图纪念 14 | 15 | #### 1.0 16 | 17 | ![](./history/1.0.png) 18 | 19 | #### 1.1 20 | 21 | ![](./history/1.1.png) 22 | 23 | #### 1.2 24 | 25 | ![](./history/1.2.png) 26 | -------------------------------------------------------------------------------- /page/doc/doc.js: -------------------------------------------------------------------------------- 1 | app.controller("doc", function ($scope, $rootScope, $location, $sce) { 2 | $scope.loading = true; 3 | $scope.url = $sce.trustAsResourceUrl("https://www.yuque.com/erupts" + ($location.search().link || '/erupt')); 4 | angular.element(document.getElementById("frame-doc")).bind('load', function () { 5 | $scope.loading = false 6 | $scope.$apply(); 7 | }); 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /images/view/date.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/slider.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/view/markdown.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/view/white.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /images/component/white.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /images/component/textarea.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/db/oracle.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /page/doc/doc.html: -------------------------------------------------------------------------------- 1 | 7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | 18 |
19 | -------------------------------------------------------------------------------- /images/component/bool.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/tabTableRefer.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/file/finder.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/choice.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/empty.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/view/mobile-html.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/gitee.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/home/right.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/home/right2.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/tabTableAdd.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /images/file/file.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/codeEditor.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/view/code.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /images/db/mongoDB.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/view/ovr.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /page/contrast/contrast.js: -------------------------------------------------------------------------------- 1 | app.controller("contrast", function ($scope, $http, dataService) { 2 | var codeEle = document.getElementById("erupt-code"); 3 | var activeKey = "active_key"; 4 | dataService.eruptReq("/demo/code-list", null, function (data) { 5 | var item = sessionStorage.getItem(activeKey); 6 | if (null == item) { 7 | $scope.active = data[0]; 8 | } else { 9 | $scope.active = JSON.parse(item); 10 | } 11 | findCode($scope.active); 12 | $scope.pages = data; 13 | }) 14 | 15 | $scope.choicePage = function (page) { 16 | if ($scope.active.id === page.id) { 17 | return; 18 | } 19 | sessionStorage.setItem(activeKey, JSON.stringify(page)); 20 | $scope.active = page; 21 | findCode(page); 22 | } 23 | 24 | function findCode(page) { 25 | dataService.eruptReq("/demo/code-by-id", {id: page.id}, function (data) { 26 | $("#erupt-code code").text(data[0].code); 27 | Prism.highlightAllUnder(codeEle); 28 | }) 29 | } 30 | }); 31 | -------------------------------------------------------------------------------- /images/git.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/divide.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/component/referenceTable.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 8 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /images/view/link.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/top.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/component/input.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/prism/prism-okaidia.min.css: -------------------------------------------------------------------------------- 1 | code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8292a2}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} -------------------------------------------------------------------------------- /images/view/swf.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/github.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/db/more.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/db/custom.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /images/component/tpl.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/db/polardb.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/db/h2.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /assets/prism/prism-java.min.js: -------------------------------------------------------------------------------- 1 | !function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|null|open|opens|package|private|protected|provides|public|record|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/\b[A-Z](?:\w*[a-z]\w*)?\b/;e.languages.java=e.languages.extend("clike",{"class-name":[a,/\b[A-Z]\w*(?=\s+\w+\s*[;,=())])/],keyword:t,function:[e.languages.clike.function,{pattern:/(\:\:)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x[\da-f_]*\.?[\da-f_p+-]+\b|(?:\b\d[\d_]*\.?[\d_]*|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{alias:"punctuation",pattern:/(^|[^.])@\w+/,lookbehind:!0},namespace:{pattern:RegExp("(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?".replace(//g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}},generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism); -------------------------------------------------------------------------------- /images/view/download.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/component/sign.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/db/spanner.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /images/component/hidden.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/gitcode.svg: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/referenceTree.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /images/view/image.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /images/component/htmlEditor.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /assets/prism/prism.min.css: -------------------------------------------------------------------------------- 1 | code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} -------------------------------------------------------------------------------- /images/component/number.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 15 | 17 | 18 | -------------------------------------------------------------------------------- /images/db/sybase.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/view/link-dialog.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/tags.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/db/mysql.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/date.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/view/map.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/component/map.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /images/view/attachment-dialog.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/autoComplete.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /images/component/tabTree.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /images/using/tesla.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/component/attachment.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /assets/logo2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 32 | 33 | 35 | 37 | 39 | 41 | 42 | 43 | 46 | 47 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /images/view/attachment.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /images/component/checkbox.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 18 | -------------------------------------------------------------------------------- /assets/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 40 | 41 | 43 | 45 | 47 | 49 | 50 | 51 | 54 | 55 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /images/db/api.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 8 | 10 | 12 | 14 | 15 | -------------------------------------------------------------------------------- /assets/github.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /page/contrast/contrast.html: -------------------------------------------------------------------------------- 1 | 51 |
52 |
53 |
54 |
55 | 60 |
61 |
62 |
63 |
{{'contrast.java' | i18n}}
64 |
65 |
67 |
68 |
69 |
70 |
{{'contrast.effect' | i18n}}
71 |
72 | 74 |
75 |
76 |
77 |
78 | 93 | -------------------------------------------------------------------------------- /images/view/html.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | var host = "https://www.erupt.xyz/demo" 2 | 3 | // var host = "http://127.0.0.1:9999" 4 | 5 | function updateTitle() { 6 | document.title = i18n.t('nav.home') + " - Erupt"; 7 | } 8 | 9 | function toTemplate() { 10 | window.scrollTo(0, 0); 11 | } 12 | 13 | var app = angular.module('app', [ 14 | 'ngRoute' 15 | ]).run(function ($rootScope) { 16 | $rootScope.year = new Date().getFullYear(); 17 | $rootScope.showHeader = true; 18 | $rootScope.currentLang = i18n.getLang(); 19 | updateTitle(); 20 | 21 | $rootScope.$on('$routeChangeSuccess', function (eve, current, previous) { 22 | $rootScope.currRouter = current.$$route.originalPath; 23 | }); 24 | }).config(function ($routeProvider) { 25 | $routeProvider.when('/', { 26 | templateUrl: function (attr) { 27 | return "page/home.html"; 28 | } 29 | }).when('/doc', { 30 | templateUrl: function (attr) { 31 | toTemplate(); 32 | return "page/doc/doc.html"; 33 | } 34 | }).when('/module', { 35 | templateUrl: function (attr) { 36 | toTemplate(); 37 | return "page/extra/extra.html"; 38 | } 39 | }).when('/contrast', { 40 | templateUrl: function (attr) { 41 | toTemplate(); 42 | return "page/contrast/contrast.html"; 43 | } 44 | }).when('/component', { 45 | templateUrl: function (attr) { 46 | toTemplate(); 47 | return "page/component/component.html"; 48 | } 49 | }).otherwise({ 50 | redirectTo: '/' 51 | }); 52 | }) 53 | 54 | app.filter('trustAsResourceUrl', ['$sce', function ($sce) { 55 | return function (val) { 56 | return $sce.trustAsResourceUrl(val); 57 | }; 58 | }]) 59 | 60 | // 国际化过滤器 61 | app.filter('i18n', function() { 62 | return function(key, params) { 63 | if (!key) return ''; 64 | return i18n.t(key, params); 65 | }; 66 | }) 67 | 68 | // 国际化过滤器(HTML版本) 69 | app.filter('i18nHtml', ['$sce', function($sce) { 70 | return function(key, params) { 71 | if (!key) return ''; 72 | var translation = i18n.t(key, params); 73 | return $sce.trustAsHtml(translation); 74 | }; 75 | }]) 76 | 77 | // 国际化服务 78 | app.service('i18nService', function() { 79 | return { 80 | t: function(key, params) { 81 | return i18n.t(key, params); 82 | }, 83 | setLang: function(lang) { 84 | i18n.setLang(lang); 85 | }, 86 | getLang: function() { 87 | return i18n.getLang(); 88 | } 89 | }; 90 | }) 91 | 92 | app.service('dataService', function ($http) { 93 | return { 94 | eruptReq: function (path, data, callback) { 95 | $http({ 96 | method: 'post', 97 | url: host + "/zeta-api/sql" + path, 98 | data: data && JSON.stringify(data), 99 | headers: {'Content-Type': 'application/json'} 100 | }).then(function (req) { 101 | callback(req.data.result); 102 | }) 103 | } 104 | } 105 | 106 | 107 | }) 108 | -------------------------------------------------------------------------------- /images/sponsor/idea.svg: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 42 | 44 | -------------------------------------------------------------------------------- /page/component/component.html: -------------------------------------------------------------------------------- 1 | 38 |
39 |
40 |
41 |
42 |
43 |

44 | 45 | 47 | 48 |   49 | 50 |

51 |
52 |
53 |
54 |
55 |
56 | 57 |
58 |

{{type.name}}

59 |
60 |
61 |
62 |
63 | 64 |
65 |
66 |
67 |

68 | 70 | 71 |   72 | 73 |

74 |
75 |
76 |
77 |
78 |
79 | 80 |
81 |

{{type.name}}

82 |
83 |
84 |
85 |
86 |
87 |
88 | -------------------------------------------------------------------------------- /assets/split.min.js: -------------------------------------------------------------------------------- 1 | "use strict";(function(){var e=this,t="querySelector",i="addEventListener",s="removeEventListener",r="getBoundingClientRect",n=e.attachEvent&&!e[i],a=e.document,o=function(){var e,t=["","-webkit-","-moz-","-o-"];for(var i=0;i=this.size-this.bMin-u.snapOffset){t=this.size-this.bMin}x.call(this,t);if(u.onDrag){u.onDrag()}},M=function(){var t=e.getComputedStyle(this.parent),i=this.parent[g]-parseFloat(t[d])-parseFloat(t[S]);this.size=this.a[r]()[c]+this.b[r]()[c]+this.aGutterSize+this.bGutterSize;this.percentage=Math.min(this.size/i*100,100);this.start=this.a[r]()[p]},x=function(e){this.a.style[c]=o+"("+e/this.size*this.percentage+"% - "+this.aGutterSize+"px)";this.b.style[c]=o+"("+(this.percentage-e/this.size*this.percentage)+"% - "+this.bGutterSize+"px)"},G=function(){var e=this,t=e.a,i=e.b;if(t[r]()[c]=0;t--){M.call(e[t]);E.call(e[t])}},U=function(){return false},D=a[t](l[0]).parentNode;if(!u.sizes){var k=100/l.length;u.sizes=[];for(f=0;f0){N={a:a[t](l[f-1]),b:O,aMin:u.minSize[f-1],bMin:u.minSize[f],dragging:false,parent:D,isFirst:B,isLast:F,direction:u.direction};N.aGutterSize=u.gutterSize;N.bGutterSize=u.gutterSize;if(B){N.aGutterSize=u.gutterSize/2}if(F){N.bGutterSize=u.gutterSize/2}}if(!n){if(f>0){var R=a.createElement("div");R.className=z;R.style[c]=u.gutterSize+"px";R[i]("mousedown",v.bind(N));R[i]("touchstart",v.bind(N));D.insertBefore(R,O);N.gutter=R}if(f===0||f==l.length-1){C=u.gutterSize/2}if(typeof u.sizes[f]==="string"||u.sizes[f]instanceof String){A=u.sizes[f]}else{A=o+"("+u.sizes[f]+"% - "+C+"px)"}}else{if(typeof u.sizes[f]==="string"||u.sizes[f]instanceof String){A=u.sizes[f]}else{A=u.sizes[f]+"%"}}O.style[c]=A;if(f>0){y.push(N)}}w(y)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=l}exports.Split=l}else{e.Split=l}}).call(window); 2 | -------------------------------------------------------------------------------- /page/extra/extra.html: -------------------------------------------------------------------------------- 1 | 30 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |

{{module.name}}

39 |
40 |

41 | 42 | {{module.title}} 43 | 44 | {{module.title}} 45 |

46 |

{{module.remark}}

47 |
48 |
49 |
50 |
51 |
52 | 53 |
54 | -------------------------------------------------------------------------------- /page/component/component.js: -------------------------------------------------------------------------------- 1 | app.controller("component", function ($scope, i18nService, $sce) { 2 | // 获取带参数的 HTML 翻译 3 | $scope.getI18nHtml = function(key, params) { 4 | var translation = i18nService.t(key, params); 5 | return $sce.trustAsHtml(translation); 6 | }; 7 | 8 | function updateTypes() { 9 | $scope.types = [ 10 | {code: "INPUT", name: i18nService.t('component.input'), image: "input.svg"}, 11 | {code: "TEXTAREA", name: i18nService.t('component.textarea'), image: "textarea.svg"}, 12 | {code: "NUMBER", name: i18nService.t('component.number'), image: "number.svg"}, 13 | {code: "SLIDER", name: i18nService.t('component.slider'), image: "slider.svg"}, 14 | {code: "DATE", name: i18nService.t('component.date'), image: "date.svg"}, 15 | {code: "BOOLEAN", name: i18nService.t('component.boolean'), image: "bool.svg"}, 16 | {code: "CHOICE", name: i18nService.t('component.choice'), image: "choice.svg"}, 17 | {code: "TAGS", name: i18nService.t('component.tags'), image: "tags.svg"}, 18 | {code: "ATTACHMENT", name: i18nService.t('component.attachment'), image: "attachment.svg"}, 19 | {code: "AUTO_COMPLETE", name: i18nService.t('component.autocomplete'), image: "autoComplete.svg"}, 20 | 21 | {code: "REFERENCE_TREE", name: i18nService.t('component.referenceTree'), image: "referenceTree.svg"}, 22 | {code: "REFERENCE_TABLE", name: i18nService.t('component.referenceTable'), image: "referenceTable.svg"}, 23 | 24 | {code: "CHECKBOX", name: i18nService.t('component.checkbox'), image: "checkbox.svg"}, 25 | {code: "TAB_TREE", name: i18nService.t('component.tabTree'), image: "tabTree.svg"}, 26 | {code: "TAB_TABLE_REFER", name: i18nService.t('component.tabTableRefer'), image: "tabTableRefer.svg"}, 27 | {code: "TAB_TABLE_ADD", name: i18nService.t('component.tabTableAdd'), image: "tabTableAdd.svg"}, 28 | 29 | {code: "HTML_EDITOR", name: i18nService.t('component.htmlEditor'), image: "htmlEditor.svg"}, 30 | {code: "CODE_EDITOR", name: i18nService.t('component.codeEditor'), image: "codeEditor.svg"}, 31 | {code: "TPL", name: i18nService.t('component.tpl'), image: "tpl.svg"}, 32 | {code: "MAP", name: i18nService.t('component.map'), image: "map.svg"}, 33 | {code: "DIVIDE", name: i18nService.t('component.divide'), image: "divide.svg"}, 34 | {code: "SIGNATURE", name: i18nService.t('component.signature'), image: "sign.svg"}, 35 | {code: "HIDDEN", name: i18nService.t('component.hidden'), image: "hidden.svg"}, 36 | {code: "EMPTY", name: i18nService.t('component.empty'), image: "empty.svg"}, 37 | ]; 38 | 39 | $scope.viewTypes = [ 40 | {code: "TEXT", name: i18nService.t('component.view.text'), image: "text.svg"}, 41 | {code: "NUMBER", name: i18nService.t('component.view.number'), image: "number.svg"}, 42 | {code: "DATE", name: i18nService.t('component.view.date'), image: "date.svg"}, 43 | {code: "IMAGE", name: i18nService.t('component.view.image'), image: "image.svg"}, 44 | {code: "HTML", name: i18nService.t('component.view.html'), image: "html.svg"}, 45 | {code: "MOBILE_HTML", name: i18nService.t('component.view.mobileHtml'), image: "mobile-html.svg"}, 46 | 47 | {code: "LINK", name: i18nService.t('component.view.link'), image: "link.svg"}, 48 | {code: "LINK_DIALOG", name: i18nService.t('component.view.linkDialog'), image: "link-dialog.svg"}, 49 | {code: "DOWNLOAD", name: i18nService.t('component.view.download'), image: "download.svg"}, 50 | {code: "ATTACHMENT", name: i18nService.t('component.view.attachment'), image: "attachment.svg"}, 51 | {code: "OVR", name: i18nService.t('component.view.ovr'), image: "ovr.svg"}, 52 | {code: "ATTACHMENT_DIALOG", name: i18nService.t('component.view.attachmentDialog'), image: "attachment-dialog.svg"}, 53 | 54 | {code: "QR_CODE", name: i18nService.t('component.view.qrCode'), image: "qr.svg"}, 55 | {code: "SWF", name: i18nService.t('component.view.swf'), image: "swf.svg"}, 56 | {code: "CODE", name: i18nService.t('component.view.code'), image: "code.svg"}, 57 | {code: "MAP", name: i18nService.t('component.view.map'), image: "map.svg"}, 58 | {code: "BASE64", name: i18nService.t('component.view.base64'), image: "base64.svg"}, 59 | {code: "MARKDOWN", name: i18nService.t('component.view.markdown'), image: "markdown.svg"}, 60 | ]; 61 | } 62 | 63 | updateTypes(); 64 | }); 65 | -------------------------------------------------------------------------------- /images/using/leke.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 39 | 41 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /images/home/extend.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 31 | 33 | 35 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /images/using/宁德时代.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /images/db/kingbase.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /assets/angular-route.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | AngularJS v1.7.8 3 | (c) 2010-2018 Google, Inc. http://angularjs.org 4 | License: MIT 5 | */ 6 | (function(I,b){'use strict';function z(b,h){var d=[],c=b.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(b,c,h,k){b="?"===k||"*?"===k;k="*"===k||"*?"===k;d.push({name:h,optional:b});c=c||"";return(b?"(?:"+c:c+"(?:")+(k?"(.+?)":"([^/]+)")+(b?"?)?":")")}).replace(/([/$*])/g,"\\$1");h.ignoreTrailingSlashes&&(c=c.replace(/\/+$/,"")+"/*");return{keys:d,regexp:new RegExp("^"+c+"(?:[?#]|$)",h.caseInsensitiveMatch?"i":"")}}function A(b){p&&b.get("$route")}function v(u,h,d){return{restrict:"ECA", 7 | terminal:!0,priority:400,transclude:"element",link:function(c,f,g,l,k){function q(){r&&(d.cancel(r),r=null);m&&(m.$destroy(),m=null);s&&(r=d.leave(s),r.done(function(b){!1!==b&&(r=null)}),s=null)}function C(){var g=u.current&&u.current.locals;if(b.isDefined(g&&g.$template)){var g=c.$new(),l=u.current;s=k(g,function(g){d.enter(g,null,s||f).done(function(d){!1===d||!b.isDefined(w)||w&&!c.$eval(w)||h()});q()});m=l.scope=g;m.$emit("$viewContentLoaded");m.$eval(p)}else q()}var m,s,r,w=g.autoscroll,p=g.onload|| 8 | "";c.$on("$routeChangeSuccess",C);C()}}}function x(b,h,d){return{restrict:"ECA",priority:-400,link:function(c,f){var g=d.current,l=g.locals;f.html(l.$template);var k=b(f.contents());if(g.controller){l.$scope=c;var q=h(g.controller,l);g.controllerAs&&(c[g.controllerAs]=q);f.data("$ngControllerController",q);f.children().data("$ngControllerController",q)}c[g.resolveAs||"$resolve"]=l;k(c)}}}var D,E,F,G,y=b.module("ngRoute",[]).info({angularVersion:"1.7.8"}).provider("$route",function(){function u(d, 9 | c){return b.extend(Object.create(d),c)}D=b.isArray;E=b.isObject;F=b.isDefined;G=b.noop;var h={};this.when=function(d,c){var f;f=void 0;if(D(c)){f=f||[];for(var g=0,l=c.length;g 3 | 5 | 7 | 9 | 11 | 13 | 15 | 16 | -------------------------------------------------------------------------------- /app.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Courier New'; 3 | src: url('assets/Courier New.ttf'); 4 | } 5 | 6 | * { 7 | font-family: Courier New, Menlo, Monaco, Consolas, monospace; 8 | margin: 0; 9 | padding: 0; 10 | scrollbar-width: thin; 11 | } 12 | 13 | html { 14 | overflow-x: hidden; 15 | } 16 | 17 | html, body { 18 | background: #efefef; 19 | border-radius: 6px; 20 | } 21 | 22 | 23 | @media (max-width: 768px) { 24 | #main { 25 | margin-bottom: 0 !important; 26 | } 27 | 28 | #footer { 29 | position: static !important; 30 | height: auto !important; 31 | } 32 | 33 | #footer > div { 34 | height: auto !important; 35 | } 36 | 37 | .logo-text { 38 | display: none; 39 | } 40 | } 41 | 42 | 43 | #header { 44 | position: fixed; 45 | z-index: 999; 46 | top: 0; 47 | left: 0; 48 | right: 0; 49 | border-bottom: 1px solid #efe3e5; 50 | box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .05); 51 | background: #ffffff; 52 | background: rgba(255, 255, 255, 0.96); 53 | transition: all 600ms; 54 | padding: 0 26px; 55 | } 56 | 57 | #main { 58 | min-height: calc(100vh - 295px); 59 | margin-bottom: 295px; 60 | margin-top: 45px; 61 | border-radius: 0 0 6px 6px; 62 | box-shadow: rgb(22, 24, 27) 0 10px 10px; 63 | z-index: 999; 64 | } 65 | 66 | #footer { 67 | position: fixed; 68 | z-index: -1; 69 | left: 0; 70 | right: 0; 71 | bottom: 0; 72 | height: 295px; 73 | color: #fff; 74 | background: #111 url(images/tile.png) 0 0 repeat; 75 | box-shadow: inset 0 30px 30px -15px rgba(33, 33, 33, 0.8); 76 | } 77 | 78 | #footer .footer-link { 79 | font-weight: 400; 80 | color: hsla(0, 0%, 100%, .5); 81 | } 82 | 83 | #footer .footer-link a { 84 | color: hsla(0, 0%, 100%, .5); 85 | text-decoration: underline; 86 | } 87 | 88 | 89 | #header a { 90 | color: #808695; 91 | } 92 | 93 | #header a:hover, #header a:focus, #header a:active { 94 | text-decoration: none; 95 | } 96 | 97 | 98 | .ng-cloak { 99 | display: none; 100 | } 101 | 102 | .col-xs-space { 103 | padding-left: 8px; 104 | padding-right: 8px; 105 | } 106 | 107 | .logo-text { 108 | font-weight: 600; 109 | font-size: 24px; 110 | vertical-align: middle; 111 | margin-left: 6px; 112 | letter-spacing: 3px; 113 | } 114 | 115 | 116 | .coder { 117 | font-family: Courier New, Menlo, Monaco, Consolas, monospace; 118 | } 119 | 120 | 121 | .card { 122 | border-radius: 6px; 123 | overflow: hidden; 124 | border: 1px solid rgba(0, 0, 0, .14); 125 | box-shadow: 0 3px 8px -6px rgba(0, 0, 0, .1); 126 | } 127 | 128 | 129 | .token.operator { 130 | background: none !important; 131 | } 132 | 133 | 134 | .annotation { 135 | color: #FFEB3B !important; 136 | } 137 | 138 | .active-link { 139 | color: #000 !important; 140 | font-weight: 600; 141 | } 142 | 143 | 144 | .delay-1 { 145 | animation-delay: 300ms; 146 | } 147 | 148 | .delay-2 { 149 | animation-delay: 600ms; 150 | } 151 | 152 | .delay-3 { 153 | animation-delay: 900ms; 154 | } 155 | 156 | .delay-4 { 157 | animation-delay: 1200ms; 158 | } 159 | 160 | .delay-5 { 161 | animation-delay: 1500ms; 162 | } 163 | 164 | .delay-6 { 165 | animation-delay: 1500ms; 166 | } 167 | 168 | 169 | /* loading */ 170 | 171 | .sk-folding-cube { 172 | margin: 20px auto; 173 | width: 40px; 174 | height: 40px; 175 | position: relative; 176 | -webkit-transform: rotateZ(45deg); 177 | transform: rotateZ(45deg); 178 | } 179 | 180 | .sk-folding-cube .sk-cube { 181 | float: left; 182 | width: 50%; 183 | height: 50%; 184 | position: relative; 185 | -webkit-transform: scale(1.1); 186 | -ms-transform: scale(1.1); 187 | transform: scale(1.1); 188 | } 189 | 190 | .sk-folding-cube .sk-cube:before { 191 | content: ''; 192 | position: absolute; 193 | top: 0; 194 | left: 0; 195 | width: 100%; 196 | height: 100%; 197 | background-color: #47c479; 198 | -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both; 199 | animation: sk-foldCubeAngle 2.4s infinite linear both; 200 | -webkit-transform-origin: 100% 100%; 201 | -ms-transform-origin: 100% 100%; 202 | transform-origin: 100% 100%; 203 | } 204 | 205 | .sk-folding-cube .sk-cube2 { 206 | -webkit-transform: scale(1.1) rotateZ(90deg); 207 | transform: scale(1.1) rotateZ(90deg); 208 | } 209 | 210 | .sk-folding-cube .sk-cube3 { 211 | -webkit-transform: scale(1.1) rotateZ(180deg); 212 | transform: scale(1.1) rotateZ(180deg); 213 | } 214 | 215 | .sk-folding-cube .sk-cube4 { 216 | -webkit-transform: scale(1.1) rotateZ(270deg); 217 | transform: scale(1.1) rotateZ(270deg); 218 | } 219 | 220 | .sk-folding-cube .sk-cube2:before { 221 | -webkit-animation-delay: 0.3s; 222 | animation-delay: 0.3s; 223 | } 224 | 225 | .sk-folding-cube .sk-cube3:before { 226 | -webkit-animation-delay: 0.6s; 227 | animation-delay: 0.6s; 228 | } 229 | 230 | .sk-folding-cube .sk-cube4:before { 231 | -webkit-animation-delay: 0.9s; 232 | animation-delay: 0.9s; 233 | } 234 | 235 | @-webkit-keyframes sk-foldCubeAngle { 236 | 0%, 10% { 237 | -webkit-transform: perspective(140px) rotateX(-180deg); 238 | transform: perspective(140px) rotateX(-180deg); 239 | opacity: 0; 240 | } 241 | 25%, 75% { 242 | -webkit-transform: perspective(140px) rotateX(0deg); 243 | transform: perspective(140px) rotateX(0deg); 244 | opacity: 1; 245 | } 246 | 90%, 100% { 247 | -webkit-transform: perspective(140px) rotateY(180deg); 248 | transform: perspective(140px) rotateY(180deg); 249 | opacity: 0; 250 | } 251 | } 252 | 253 | @keyframes sk-foldCubeAngle { 254 | 0%, 10% { 255 | -webkit-transform: perspective(140px) rotateX(-180deg); 256 | transform: perspective(140px) rotateX(-180deg); 257 | opacity: 0; 258 | } 259 | 25%, 75% { 260 | -webkit-transform: perspective(140px) rotateX(0deg); 261 | transform: perspective(140px) rotateX(0deg); 262 | opacity: 1; 263 | } 264 | 90%, 100% { 265 | -webkit-transform: perspective(140px) rotateY(180deg); 266 | transform: perspective(140px) rotateY(180deg); 267 | opacity: 0; 268 | } 269 | } 270 | 271 | 272 | /*美化滚动条*/ 273 | ::-webkit-scrollbar { 274 | width: 4px; 275 | height: 4px; 276 | background-color: rgba(0, 0, 0, 0); 277 | -ms-overflow-style: -ms-autohiding-scrollbar; 278 | } 279 | 280 | ::-webkit-scrollbar-thumb { 281 | border-radius: 5px; 282 | background-color: rgba(102, 102, 102, 0.65); 283 | } 284 | 285 | 286 | ::-webkit-scrollbar-track { 287 | border-radius: 0; 288 | background-color: rgba(0, 0, 0, 0); 289 | } 290 | 291 | 292 | .dropdown-item.active, .dropdown-item:active { 293 | background: #eee; 294 | } 295 | 296 | /* 语言切换下拉菜单 hover 效果 */ 297 | .lang-dropdown:hover .dropdown-menu { 298 | display: block !important; 299 | } 300 | 301 | .lang-dropdown .dropdown-toggle { 302 | cursor: pointer; 303 | } 304 | -------------------------------------------------------------------------------- /page/home.js: -------------------------------------------------------------------------------- 1 | app.controller("home", function ($scope, $rootScope, $timeout, i18nService) { 2 | $scope.indicator = [{ 3 | name: i18nService.t('home.features.fast.name'), 4 | desc: i18nService.t('home.features.fast.desc'), 5 | icon: "fast.svg" 6 | }, { 7 | name: i18nService.t('home.features.security.name'), 8 | desc: i18nService.t('home.features.security.desc'), 9 | icon: "security.svg" 10 | }, { 11 | name: i18nService.t('home.features.responsive.name'), 12 | desc: i18nService.t('home.features.responsive.desc'), 13 | icon: "resize.svg" 14 | }, { 15 | name: i18nService.t('home.features.low.name'), 16 | desc: i18nService.t('home.features.low.desc'), 17 | icon: "hold.svg" 18 | }, { 19 | name: i18nService.t('home.features.beautiful.name'), 20 | desc: i18nService.t('home.features.beautiful.desc'), 21 | icon: "art.svg" 22 | }, { 23 | name: i18nService.t('home.features.db.name'), 24 | desc: i18nService.t('home.features.db.desc'), 25 | icon: "db.svg" 26 | }, { 27 | name: i18nService.t('home.features.extend.name'), 28 | desc: i18nService.t('home.features.extend.desc'), 29 | url: "https://www.yuque.com/erupts/erupt/nicqg3", 30 | icon: "extend.svg" 31 | }, { 32 | name: i18nService.t('home.features.attachment.name'), 33 | desc: i18nService.t('home.features.attachment.desc'), 34 | icon: "attachment.svg", 35 | url: "https://www.yuque.com/erupts/erupt/famk6i" 36 | }, { 37 | name: i18nService.t('home.features.template.name'), 38 | desc: i18nService.t('home.features.template.desc'), 39 | icon: "template.svg", 40 | url: "https://www.yuque.com/erupts/gd8zod/wzmdu2" 41 | }]; 42 | 43 | 44 | $scope.using = [ 45 | {name: '阿里巴巴', logo: "images/using/ali.png"}, 46 | {name: '用友政务', logo: "images/using/yongyou.png"}, 47 | {name: '美团', logo: "images/using/meituan.png"}, 48 | {name: '上海银行', logo: "images/using/shanghai_bank.png"}, 49 | {name: '民生银行', logo: "images/using/民生银行.png"}, 50 | {name: '传音控股', logo: "images/using/transsion.png"}, 51 | {name: '思为科技', logo: "images/using/ideamake.png"}, 52 | {name: '招商蛇口', logo: "images/using/zhaoshang.png"}, 53 | {name: '中海地产', logo: "images/using/中海地产.png"}, 54 | {name: '龙湖数科', logo: "images/using/longhu.png"}, 55 | {name: '零跑汽车', logo: "images/using/零跑汽车.png"}, 56 | {name: 'YashanDB', logo: "images/using/yashan.png"}, 57 | {name: '中国电信', logo: "images/using/telecom.png"}, 58 | {name: '哪吒汽车', logo: "images/using/nezha.webp"}, 59 | // {name: '安克创新', logo: "images/using/logo-anker-in.png"}, 60 | {name: '跨越速运', logo: "images/using/跨越速运.png"}, 61 | {name: '南开大学', logo: "images/using/南开大学.png"}, 62 | // {name: '中国地质大学(北京)', logo: "images/using/geosciences.png"}, 63 | {name: '完美世界', logo: "images/using/完美世界.png"}, 64 | {name: '恒瑞医药', logo: "images/using/hengrui.png"}, 65 | {name: '销售易', logo: "images/using/销售易.jpg"}, 66 | {name: '歌华有线', logo: "images/using/gehua.jpg"}, 67 | {name: '良医汇', logo: "images/using/良医汇.png"}, 68 | {name: '越秀地产', logo: "images/using/yuexiu.png"}, 69 | {name: '金科地产', logo: "images/using/jinke.png"}, 70 | 71 | {name: '乐刻运动', logo: "images/using/leke.svg"}, 72 | {name: '哥们网', logo: "images/using/game2.png"}, 73 | 74 | {name: '青云', logo: "images/using/青云.png"}, 75 | {name: '好未来', logo: "images/using/hwl.png"}, 76 | {name: '企迈科技', logo: "images/using/qmai.png"}, 77 | {name: '爱范儿', logo: "images/using/ifanr.png"}, 78 | {name: '货拉拉', logo: "images/using/huolala.png"}, 79 | {name: '中通服', logo: "images/using/chinaccs.png"}, 80 | {name: '合智互联', logo: "images/using/合智互联.png"}, 81 | {name: '柳钢集团', logo: "images/using/柳钢集团.png"}, 82 | {name: '宁德时代', logo: "images/using/宁德时代.svg"}, 83 | {name: '特斯拉', logo: "images/using/tesla.svg"}, 84 | 85 | {name: '...', text: "100+"}, 86 | ] 87 | 88 | $scope.sponsor = [ 89 | { 90 | toggleText: "每天还在写代码的,写了20多年的代码民工,希望到60岁时还能运指如飞的敲键盘", 91 | headImg: "baishi.png", 92 | home: "https://github.com/wjw465150", 93 | nickname: "W.Stone", 94 | }, 95 | { 96 | toggleText: "magic-api 作者", 97 | headImg: "xiaodong.jpeg", 98 | home: "https://gitee.com/jmxd", 99 | nickname: "小东", 100 | }, 101 | // { 102 | // toggleText: "erupt-flow 作者", 103 | // headImg: "hlhutu.jpeg", 104 | // home: "https://gitee.com/hlhutu", 105 | // nickname: "hlhutu", 106 | // }, 107 | ] 108 | 109 | $scope.project = { 110 | template: { 111 | sub: { 112 | "***.html": { 113 | file: true 114 | }, 115 | "***.js": { 116 | file: true 117 | }, 118 | "***.css": { 119 | file: true 120 | } 121 | }, 122 | }, 123 | controller: {}, 124 | service: {}, 125 | "service.impl": {}, 126 | dao: {}, 127 | mapper: {}, 128 | model: { 129 | active: true, 130 | sub: { 131 | DemoErupt: { 132 | file: true, 133 | active: true 134 | } 135 | } 136 | } 137 | 138 | } 139 | 140 | $scope.javaLayer = ["controller", "service", "service impl", "dao", "dao impl", "model"]; 141 | 142 | $scope.htmlLayer = ["view.html", "edit.html", "xxx.js", "xxx.css", "util.js"]; 143 | 144 | $scope.dbs = [ 145 | {name: i18nService.t('db.mysql'), image: "mysql.svg"}, 146 | {name: i18nService.t('db.oracle'), image: "oracle.svg"}, 147 | {name: i18nService.t('db.sqlserver'), image: "sqlServer.svg"}, 148 | {name: i18nService.t('db.postgresql'), image: "postgreSQL.svg"}, 149 | {name: i18nService.t('db.h2'), image: "h2.svg"}, 150 | {name: i18nService.t('db.polardb'), image: "polardb.svg"}, 151 | {name: i18nService.t('db.dm'), image: "dm.svg"}, 152 | {name: i18nService.t('db.kingbase'), image: "kingbase.svg"}, 153 | {name: i18nService.t('db.api'), image: "api.svg"}, 154 | {name: i18nService.t('db.spanner'), image: "spanner.svg"}, 155 | {name: i18nService.t('db.mongodb'), image: "mongoDB.svg"}, 156 | {name: i18nService.t('db.custom'), image: "custom.svg"} 157 | ]; 158 | 159 | Prism.highlightAllUnder(document.getElementById("DemoErupt")); 160 | 161 | $("#logo").attr("src", "assets/logo2.svg"); 162 | 163 | $.get("assets/logo2.svg", function (res) { 164 | var svg = res.getElementById("erupt_logo_svg"); 165 | svg.style.width = "100px"; 166 | $("#home-logo").html(svg) 167 | }) 168 | 169 | $scope.$on("$destroy", function () { 170 | // $rootScope.showHeader = true; 171 | document.onscroll = null; 172 | $("#logo").attr("src", "assets/logo.svg"); 173 | }) 174 | 175 | $timeout(function () { 176 | $('[data-toggle="tooltip"]').tooltip() 177 | }, 1000); 178 | 179 | $scope.go = function (url, open) { 180 | if (open) { 181 | window.open(url) 182 | } else { 183 | window.location = url; 184 | } 185 | } 186 | 187 | 188 | }); 189 | -------------------------------------------------------------------------------- /images/home/art.svg: -------------------------------------------------------------------------------- 1 | 3 | online_art 4 | 6 | 8 | 10 | 12 | 13 | 14 | 15 | 16 | 18 | 20 | 23 | 26 | 28 | 30 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 45 | 47 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 67 | -------------------------------------------------------------------------------- /images/footer.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 50 | 51 | 52 | 53 | 54 | 55 | 57 | 58 | 59 | 60 | 61 | 62 | 64 | 65 | 66 | 67 | 68 | 69 | 71 | 72 | 73 | 74 | 75 | 76 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /images/home/resize.svg: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | 8 | 10 | 11 | 13 | 14 | 15 | 16 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 71 | 72 | 73 | 74 | 76 | 78 | 79 | -------------------------------------------------------------------------------- /images/home/hold.svg: -------------------------------------------------------------------------------- 1 | 3 | hologram 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 53 | 55 | 57 | 59 | 61 | 63 | 65 | 67 | 69 | 71 | 73 | 75 | 77 | 79 | 80 | 81 | 83 | 85 | 87 | 89 | 91 | 93 | 95 | 96 | 98 | 99 | 100 | 101 | 102 | --------------------------------------------------------------------------------