Skip to content

Commit

Permalink
Dev (#3)
Browse files Browse the repository at this point in the history
* fix:change development port & fix code error

* Update readme
  • Loading branch information
xxyan0205 authored Jun 13, 2018
1 parent 255bc2b commit 585c3cc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
</a>
</p>

<h2 align="center">Paletee</h2>
<h2 align="center">Mand Mobile Paletee</h2>

> 🎨 A visual theme editing tool for Mand Mobile
Using `Palette`, you can modify the style of [Mand Mobile](https://didi.github.io/mand-mobile) components and eventually generate `.styl` and `.css` files and then import the custom theme style file to your project.

- [Start Making Theme](https://mand-mobile.github.io/palette)

Note: `Palette` is based on [Css Variable](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_variables), so please use it in the following [browsers](https://caniuse.com/#search=css%20variable).
Note: `Palette` is based on [Css Variable](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_variables), please use it in the following [browsers](https://caniuse.com/#search=css%20variable).


### Mand Mobile Style
Expand Down Expand Up @@ -61,7 +61,7 @@ Vue.use(mandMobile)
```


### How Palette works
### How Palette Works

<img src="http://manhattan.didistatic.com/static/manhattan/mand/palette-structure.jpg" width="800"/>

Expand All @@ -74,4 +74,6 @@ cd palette
npm install
npm run dev
```
Open your browser and visit http://127.0.0.1:4000.


2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {

// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port: 4000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
Expand Down
8 changes: 4 additions & 4 deletions src/components/previewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<div class="palette-previewer-box">
<component
v-bind:is="demos[name]"
:is="demos[name]"
></component>
</div>
<div class="palette-previewer-decorate"></div>
Expand All @@ -22,13 +22,13 @@ export default {
props: {
name: {
type: String,
default: '',
loadingInstance: ''
default: ''
}
},
data () {
return {
demos: {}
demos: {},
loadingInstance: ''
}
},
created () {
Expand Down

0 comments on commit 585c3cc

Please sign in to comment.