forked from open-source-labs/PreVue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request open-source-labs#46 from pinnockf/master
Swapped out VueDragResize for VueDraggableResizable
- Loading branch information
Showing
37 changed files
with
648 additions
and
14,888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,44 @@ | ||
<template> | ||
<v-app dark> | ||
<div id="app"> | ||
<NavBar :show="$route.name" @click="drawer = !drawer"></NavBar> | ||
<v-content> | ||
<router-view /> | ||
<NavBar></NavBar> | ||
<v-content class="content"> | ||
<router-view/> | ||
</v-content> | ||
<v-navigation-drawer right v-model="drawer" app> | ||
<Sidebar header="Create" /> | ||
</v-navigation-drawer> | ||
</div> | ||
</v-app> | ||
</template> | ||
|
||
<script> | ||
import Sidebar from './components/SideBar'; | ||
import NavBar from '@/components/NavBar.vue'; | ||
export default { | ||
data() { | ||
return { | ||
drawer: false | ||
}; | ||
}, | ||
components: { | ||
Sidebar, | ||
NavBar | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
<style lang="scss" scoped> | ||
#app { | ||
font-family: 'Avenir', Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
display: grid; | ||
grid-template-columns: 8fr 2fr; | ||
grid-template-areas: 'componentDisplay sidebar'; | ||
height: 100%; | ||
.content { | ||
height: 100%; | ||
} | ||
} | ||
#nav { | ||
margin-left: 0; | ||
padding: 30px; | ||
a { | ||
font-weight: bold; | ||
color: #2c3e50; | ||
.router-link-exact-active { | ||
color: #42b983; | ||
} | ||
} | ||
} | ||
#nav a { | ||
font-weight: bold; | ||
color: #2c3e50; | ||
} | ||
#nav a.router-link-exact-active { | ||
color: #42b983; | ||
.content { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<template> | ||
<div> | ||
<span | ||
class="white--text" | ||
v-for="htmlCode in componentMap[compName].htmlCode" | ||
:key="Date.now()" | ||
<div | ||
id="component-code-display" | ||
v-for="(htmlElementTag, idx) in renderHTMLCodeList" | ||
:key="idx + Date.now()" | ||
> | ||
{{ htmlCode }} | ||
<br /> | ||
</span> | ||
<p class="white--text">{{ htmlElementMap[htmlElementTag] }}</p> | ||
<br> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapState } from 'vuex'; | ||
export default { | ||
name: 'ComponentCodeDisplay', | ||
props: { | ||
compName: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
...mapState(['componentMap']) | ||
...mapState(['componentMap', 'clickedComponent', 'htmlElementMap']), | ||
renderHTMLCodeList: { | ||
get() { | ||
return this.componentMap[this.clickedComponent].htmlList; | ||
} | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
h1 { | ||
color: white; | ||
<style scoped> | ||
#component-code-display { | ||
padding-left: 10px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.