Skip to content

Commit

Permalink
remove theme-default (ElemeFE#7273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored and waynecz committed Sep 28, 2017
1 parent a0682ed commit 21c5791
Show file tree
Hide file tree
Showing 117 changed files with 29 additions and 8,626 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![npm package](https://img.shields.io/npm/v/element-ui.svg)](https://www.npmjs.org/package/element-ui)
[![NPM downloads](http://img.shields.io/npm/dm/element-ui.svg)](https://npmjs.org/package/element-ui)
![JS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS)
![CSS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-default/index.css?compression=gzip&label=gzip%20size:%20CSS)
![CSS gzip size](http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-chalk/index.css?compression=gzip&label=gzip%20size:%20CSS)
[![Join the chat at https://gitter.im/ElemeFE/element](https://badges.gitter.im/ElemeFE/element.svg)](https://gitter.im/ElemeFE/element?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(Chinese)
[![Join the chat at https://gitter.im/element-en/Lobby](https://badges.gitter.im/element-en/Lobby.svg)](https://gitter.im/element-en/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(English)
[![OpenCollective](https://opencollective.com/element/backers/badge.svg)](#backers)
Expand Down
1 change: 0 additions & 1 deletion build/bin/gen-cssfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var fs = require('fs');
var path = require('path');
var Components = require('../../components.json');
var themes = [
'theme-default',
'theme-chalk'
];
Components = Object.keys(Components);
Expand Down
2 changes: 1 addition & 1 deletion build/bin/iconInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var postcss = require('postcss');
var fs = require('fs');
var path = require('path');
var fontFile = fs.readFileSync(path.resolve(__dirname, '../../packages/theme-default/src/icon.css'), 'utf8');
var fontFile = fs.readFileSync(path.resolve(__dirname, '../../packages/theme-chalk/src/icon.scss'), 'utf8');
var nodes = postcss.parse(fontFile).nodes;
var classList = [];

Expand Down
2 changes: 1 addition & 1 deletion build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var path = require('path');
var fs = require('fs');
var nodeExternals = require('webpack-node-externals');
var Components = require('../components.json');
var saladConfig = require('../packages/theme-default/salad.config.json');
var saladConfig = require('./salad.config.json');

var utilsList = fs.readdirSync(path.resolve(__dirname, '../src/utils'));
var mixinsList = fs.readdirSync(path.resolve(__dirname, '../src/mixins'));
Expand Down
23 changes: 0 additions & 23 deletions build/cooking.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,6 @@ cooking.set({
alias: Object.assign(config.alias, {
'vue$': 'vue/dist/vue.common.js'
}),
postcss: function(webapck) {
return [
require('postcss-salad')({
browsers: ['ie > 8', 'last 2 versions', 'Chrome > 24'],
features: {
'partialImport': {
addDependencyTo: webapck
},
'bem': {
'shortcuts': {
'component': 'b',
'modifier': 'm',
'descendent': 'e'
},
'separators': {
'descendent': '__',
'modifier': '--'
}
}
}
})
];
},
sourceMap: '#inline-source-map'
});

Expand Down
5 changes: 0 additions & 5 deletions build/deploy-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ if [ "$ROT_TOKEN" = "" ]; then
exit 0
fi

SUB_FOLDER=$(echo "2.0.0-alpha.1" | grep -o -E "\d+\.\d+")
echo $SUB_FOLDER

# release
if [ "$TRAVIS_TAG" ]; then
# build lib
Expand Down Expand Up @@ -42,8 +39,6 @@ if [ "$TRAVIS_TAG" ]; then
git clone -b gh-pages https://$ROT_TOKEN@github.com/ElemeFE/element.git && cd element
# build sub folder
echo $TRAVIS_TAG
SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+")
echo $SUB_FOLDER

SUB_FOLDER='2.0'
mkdir $SUB_FOLDER
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/components/demo-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
'\n<scr' + `ipt src="//unpkg.com/element-ui@${ version }/lib/index.js"></scr` + 'ipt>';
let jsTpl = (script || '').replace(/export default/, 'var Main =').trim();
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`;
let cssTpl = `@import url("//unpkg.com/element-ui@${ version }/lib/theme-default/index.css");\n${(style || '').trim()}\n`;
let cssTpl = `@import url("//unpkg.com/element-ui@${ version }/lib/theme-chalk/index.css");\n${(style || '').trim()}\n`;
jsTpl = jsTpl
? jsTpl + '\nvar Ctor = Vue.extend(Main)\nnew Ctor().$mount(\'#app\')'
: 'new Vue().$mount(\'#app\')';
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/en-US/custom-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ npm i element-theme -g
Then install the default theme from npm or GitHub.
```shell
# from npm
npm i element-theme-default -D
npm i element-theme-chalk -D

# from GitHub
npm i https://github.com/ElementUI/theme-default -D
npm i https://github.com/ElementUI/theme-chalk -D
```

### Initialize variable file
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/en-US/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Get the latest version from [unpkg.com/element-ui](https://unpkg.com/element-ui/

```html
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
```
Expand All @@ -26,7 +26,7 @@ If you are using CDN, a hello-world page is easy with Element. [Online Demo](htt
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/en-US/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ In main.js:
```javascript
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

Vue.use(ElementUI)
Expand Down Expand Up @@ -168,7 +168,7 @@ Then edit .babelrc:
"plugins": [["component", [
{
"libraryName": "element-ui",
"styleLibraryName": "theme-default"
"styleLibraryName": "theme-chalk"
}
]]]
}
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/zh-CN/custom-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ npm i element-theme -g
安装默认主题,可以从 npm 安装或者从 GitHub 拉取最新代码。
```shell
# 从 npm
npm i element-theme-default -D
npm i element-theme-chalk -D

# 从 GitHub
npm i https://github.com/ElementUI/theme-default -D
npm i https://github.com/ElementUI/theme-chalk -D
```

### 初始化变量文件
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/zh-CN/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i element-ui -S

```html
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
```
Expand All @@ -26,7 +26,7 @@ npm i element-ui -S
<head>
<meta charset="UTF-8">
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-default/index.css">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/zh-CN/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ if (process.env.NODE_ENV === 'production') {
```javascript
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

Vue.use(ElementUI)
Expand Down Expand Up @@ -168,7 +168,7 @@ npm install babel-plugin-component -D
"plugins": [["component", [
{
"libraryName": "element-ui",
"styleLibraryName": "theme-default"
"styleLibraryName": "theme-chalk"
}
]]]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/icon.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["arrow-down","arrow-left","arrow-right","arrow-up","caret-bottom","caret-left","caret-right","caret-top","check","circle-check","circle-close","circle-cross","close","upload","d-arrow-left","d-arrow-right","d-caret","date","delete","document","edit","information","loading","menu","message","minus","more","picture","plus","search","setting","share","star-off","star-on","time","warning","delete2","upload2","view","circle-check-plain","circle-cross-plain","information-plain","warning-plain"]
["arrow-down","arrow-left","arrow-right","arrow-up","caret-bottom","caret-left","caret-right","caret-top","check","circle-check","circle-close","circle-cross","close","upload","d-arrow-left","d-arrow-right","d-caret","date","delete","document","edit","information","loading","menu","message","minus","more","picture","plus","search","setting","share","star-off","star-on","time","warning_default","delete2","upload2","view","circle-check-plain","circle-cross-plain","information-plain","warning-plain","info","error","success","warning","sort-down","sort-up"]
2 changes: 1 addition & 1 deletion examples/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"1.0.9":"1.0","1.1.6":"1.1","1.2.9":"1.2","1.3.7":"1.3","1.4.4":"1.4"}
{"1.0.9":"1.0","1.1.6":"1.1","1.2.9":"1.2","1.3.7":"1.3","1.4.6":"1.4","1.4.4":"2.0"}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"lint": "eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet",
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh",
"pub:all": "npm run dist:all && lerna publish --skip-git && git commit -am 'publish independent packages' && git push eleme dev",
"test": "npm run lint && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run",
"test:watch": "karma start test/unit/karma.conf.js"
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run",
"test:watch": "npm run build:theme && karma start test/unit/karma.conf.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/loading/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm i element-loading -D
```javascript
import Vue from 'vue'
import ElLoading from 'element-loading'
import 'element-theme-default/dist/loading.css'
import 'element-theme-chalk/dist/loading.css'

Vue.use(ElLoading)
```
Expand Down
2 changes: 1 addition & 1 deletion packages/pagination/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm i element-pagination -D
```javascript
import Vue from 'vue'
import ElPagination from 'element-pagination'
import 'element-theme-default/dist/pagination.css'
import 'element-theme-chalk/dist/pagination.css'

Vue.use(ElPagination)
```
Expand Down
3 changes: 3 additions & 0 deletions packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@
toggleMenu() {
if (!this.disabled) {
this.visible = !this.visible;
if (this.visible) {
(this.$refs.input || this.$refs.reference).focus();
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/steps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm i element-steps -D
```javascript
import Vue from 'vue'
import ElStep from 'element-steps'
import 'element-theme-default/dist/step.css'
import 'element-theme-chalk/dist/step.css'

Vue.use(ElStep)
```
Expand Down
2 changes: 1 addition & 1 deletion packages/table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm i element-table -D
```javascript
import Vue from 'vue'
import ElTable from 'element-table'
import 'element-theme-default'
import 'element-theme-chalk'

Vue.use(ElTable)
```
Expand Down
3 changes: 0 additions & 3 deletions packages/theme-default/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions packages/theme-default/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/theme-default/gulpfile.js

This file was deleted.

35 changes: 0 additions & 35 deletions packages/theme-default/package.json

This file was deleted.

Loading

0 comments on commit 21c5791

Please sign in to comment.