Skip to content

Commit

Permalink
add demo itempanel
Browse files Browse the repository at this point in the history
  • Loading branch information
blueju committed Sep 20, 2020
1 parent befd8d9 commit 6378962
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 0 deletions.
52 changes: 52 additions & 0 deletions demo/ItemPanel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "itempanel",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@vue/cli-plugin-babel": "4.1.1",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-eslint": "4.1.1",
"@vue/cli-service": "4.1.1",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.0.1",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"keywords": [
"vue",
"vuejs",
"starter"
],
"description": "Vue.js example starter project"
}
Binary file added demo/ItemPanel/public/favicon.ico
Binary file not shown.
20 changes: 20 additions & 0 deletions demo/ItemPanel/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>ItemPanel</title>
</head>
<body>
<noscript>
<strong
>We're sorry but codesandbox doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
28 changes: 28 additions & 0 deletions demo/ItemPanel/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" width="25%" />
<ItemPanel />
</div>
</template>

<script>
import ItemPanel from "./components/ItemPanel";
export default {
name: "App",
components: {
ItemPanel,
},
};
</script>

<style>
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Binary file added demo/ItemPanel/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions demo/ItemPanel/src/components/ItemPanel.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
<div id="itempanel"></div>
</template>

<script>
export default {
name: "ItemPanel",
props: {
msg: String,
},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
8 changes: 8 additions & 0 deletions demo/ItemPanel/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

new Vue({
render: h => h(App)
}).$mount("#app");

0 comments on commit 6378962

Please sign in to comment.