Skip to content

Commit

Permalink
remove bootstrap + fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 28, 2018
1 parent a9bb1f4 commit 0580a28
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 29 deletions.
10 changes: 0 additions & 10 deletions MyApp/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions MyApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
},
"dependencies": {
"@servicestack/client": "^1.0.0",
"bootstrap": "^4.0.0-beta.2",
"es6-shim": "^0.35.3",
"font-awesome": "^4.7.0",
"vue": "^2.5.2",
"vue-property-decorator": "^6.0.0",
"vue-router": "^3.0.1",
Expand Down
18 changes: 12 additions & 6 deletions MyApp/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
>
<v-list>
<v-list-tile
value="true"
v-for="(item, i) in items"
router
:to="item.to"
:key="i"
v-for="(item, i) in items"
exact
>
<v-list-tile-action>
<v-icon v-html="item.icon"></v-icon>
Expand All @@ -33,6 +35,7 @@
<v-btn icon @click.stop="fixed = !fixed">
<v-icon>remove</v-icon>
</v-btn>
<v-toolbar-title v-text="title"></v-toolbar-title>
<v-spacer></v-spacer>

<v-toolbar-items class="hidden-sm-and-down">
Expand All @@ -55,10 +58,10 @@
</v-content>
<v-footer :fixed="fixed" app style="justify-content:center">
<div style="text-align:center;margin:10px;">
<h5>
<img src="./assets/img/logo.svg" height="32" />
<div>
<img src="./assets/img/logo.svg" height="32" style="vertical-align:middle;margin-right:5px;" />
<a href="https://servicestack.net/vs-templates/vuetify-spa">Learn about this Vuetify VS.NET template</a>
</h5>
</div>
<div>Copyright &copy; 2018</div>
</div>
</v-footer>
Expand All @@ -75,10 +78,13 @@ export default class AppComponent extends Vue {
drawer = true
fixed = false
items = [
{ icon: 'bubble_chart', title: 'Inspire' }
{ icon: 'home', title: 'Home', to: '/' },
{ icon: 'bubble_chart', title: 'View 1', to: '/view1' },
{ icon: 'contacts', title: 'View 1', to: '/view2' }
]
miniVariant = true
right = true
title = "MyApp"
name = ""
}
</script>
4 changes: 2 additions & 2 deletions MyApp/src/home/Home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ describe('Home.vue', () => {
const vm = ctor({ name: 'Vue' });
expect(vm.name).eq('Vue');
expect(vm.$el.querySelector('input').type).eq('text');
expect(vm.$el.querySelector('h3.result').textContent).eq('');
expect(vm.$el.querySelector('h2.result').textContent).eq('');

vm.result = "Bye Vue";

Vue.nextTick(() => {
expect(vm.$el.querySelector('h3.result').textContent).eq('Bye Vue');
expect(vm.$el.querySelector('h2.result').textContent).eq('Bye Vue');
done();
});
})
Expand Down
2 changes: 1 addition & 1 deletion MyApp/src/home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
></v-text-field>
</v-form>

<h3 class="result">{{result}}</h3>
<h2 class="result">{{result}}</h2>
</div>
</v-card-title>
<v-card-actions style="justify-content:center">
Expand Down
2 changes: 0 additions & 2 deletions MyApp/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// <reference path="shared.d.ts" />

import 'bootstrap/dist/css/bootstrap.css';
import "font-awesome/css/font-awesome.css";
import './app.scss';
import 'es6-shim';
import 'vuetify/dist/vuetify.css'
Expand Down
2 changes: 1 addition & 1 deletion MyApp/src/view1/View1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('/view1 View.vue', () => {

it ('should render correct contents', () => {
const vm = ctor();
expect(vm.$el.querySelector('h3').textContent).eq('This is View 1');
expect(vm.$el.querySelector('h2').textContent).eq('This is View 1');
})

})
4 changes: 2 additions & 2 deletions MyApp/src/view1/View1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<v-card-media :src="require('../assets/img/desert.jpg')" height="200px"></v-card-media>
<v-card-title primary-title style="justify-content:center">
<div>
<h3>{{message}}</h3>
<h2>{{message}}</h2>
</div>
</v-card-title>
<v-card-actions style="justify-content:center">
Expand All @@ -29,7 +29,7 @@ export default class View1Component extends Vue {
<style lang="scss">
@import '../app.scss';
#view1 h3 {
#view1 h2 {
color: darken($navbar-background, 10%);
text-shadow: 2px 2px 3px rgba(0,0,0,0.2);
}
Expand Down
2 changes: 1 addition & 1 deletion MyApp/src/view2/View2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<v-card-media :src="require('../assets/img/desert.jpg')" height="200px"></v-card-media>
<v-card-title primary-title style="justify-content:center">
<div>
<h3>{{message}}</h3>
<h2>{{message}}</h2>
</div>
</v-card-title>
<v-card-actions style="justify-content:center">
Expand Down
3 changes: 1 addition & 2 deletions MyApp/webpack.config.vendor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"use strict";

const VENDOR = [
'bootstrap/dist/css/bootstrap.css',
'font-awesome/css/font-awesome.css',
'vuetify/dist/vuetify.css',
'es6-shim',
'@servicestack/client',
'vue',
Expand Down

0 comments on commit 0580a28

Please sign in to comment.