-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,76 @@ | ||
<template> | ||
<div id="app"> | ||
<h1>jsFrog - Explore Artifactory's NPM registry</h1> | ||
<!-- <div id="nav"> | ||
<router-link to="/">Home</router-link> | | ||
<router-link to="/about">About</router-link> | ||
</div> --> | ||
<router-view/> | ||
</div> | ||
|
||
<div class="page-container"> | ||
<md-app id="app" md-waterfall md-mode="fixed"> | ||
<md-app-toolbar class="md-primary"> | ||
<md-button class="md-icon-button" @click="menuVisible = !menuVisible"> | ||
<md-icon>menu</md-icon> | ||
</md-button> | ||
<span class="md-title">jsFrog - Explore Artifactory's NPM registry</span> | ||
</md-app-toolbar> | ||
|
||
<md-app-drawer :md-active.sync="menuVisible"> | ||
<md-toolbar class="md-transparent" md-elevation="0"> | ||
Navigation | ||
</md-toolbar> | ||
<md-list> | ||
<md-list-item> | ||
<md-icon>move_to_inbox</md-icon> | ||
<span class="md-list-item-text">Inbox</span> | ||
</md-list-item> | ||
|
||
<md-list-item> | ||
<md-icon>send</md-icon> | ||
<span class="md-list-item-text">Sent Mail</span> | ||
</md-list-item> | ||
|
||
<md-list-item> | ||
<md-icon>delete</md-icon> | ||
<span class="md-list-item-text">Trash</span> | ||
</md-list-item> | ||
|
||
<md-list-item> | ||
<md-icon>error</md-icon> | ||
<span class="md-list-item-text">Spam</span> | ||
</md-list-item> | ||
</md-list> | ||
</md-app-drawer> | ||
|
||
<md-app-content> | ||
<router-view/> | ||
</md-app-content> | ||
</md-app> | ||
</div> | ||
|
||
</template> | ||
|
||
<style lang="scss"> | ||
@import url('//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons'); | ||
@import url("//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons"); | ||
.page-container { | ||
height: 100vh; | ||
} | ||
#app { | ||
font-family: 'Avenir', Helvetica, Arial, sans-serif; | ||
// font-family: "Avenir", Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
min-height: 100%; | ||
} | ||
#nav { | ||
padding: 30px; | ||
a { | ||
font-weight: bold; | ||
color: #2c3e50; | ||
&.router-link-exact-active { | ||
color: #42b983; | ||
} | ||
</style> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator'; | ||
@Component | ||
export default class App extends Vue { | ||
@Prop() private menuVisibleProp!: boolean; | ||
private menuVisible: boolean; | ||
constructor() { | ||
super(); | ||
this.menuVisible = false; | ||
} | ||
} | ||
</style> | ||
</script> |
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
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