mirror of
				https://github.com/bartvdbraak/SlayerWeightCalculator.git
				synced 2025-10-30 19:59:11 +00:00 
			
		
		
		
	remove helloworld, add nav/content components, install bootstrap (and dependencies)
This commit is contained in:
		
							parent
							
								
									557a1916ff
								
							
						
					
					
						commit
						e47b338d7f
					
				
					 8 changed files with 67 additions and 82 deletions
				
			
		|  | @ -8,8 +8,10 @@ | |||
|     "lint": "vue-cli-service lint" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "buefy": "^0.8.10", | ||||
|     "@popperjs/core": "^2.0.4", | ||||
|     "bootstrap": "^4.4.1", | ||||
|     "core-js": "^3.4.4", | ||||
|     "jquery": "^3.4.1", | ||||
|     "vue": "^2.6.10" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|  |  | |||
							
								
								
									
										13
									
								
								src/App.vue
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/App.vue
									
										
									
									
									
								
							|  | @ -1,17 +1,19 @@ | |||
| <template> | ||||
|   <div id="app"> | ||||
|     <img alt="Vue logo" src="./assets/logo.png"> | ||||
|     <HelloWorld msg="Welcome to Your Vue.js App"/> | ||||
|     <navbar></navbar> | ||||
|     <main-content headerText="test message"></main-content> | ||||
|   </div> | ||||
| </template> | ||||
| 
 | ||||
| <script> | ||||
| import HelloWorld from './components/HelloWorld.vue' | ||||
| import MainContent from './components/MainContent.vue'; | ||||
| import Navbar from './components/Navbar.vue'; | ||||
| 
 | ||||
| export default { | ||||
|   name: 'app', | ||||
|   components: { | ||||
|     HelloWorld | ||||
|     MainContent, | ||||
|     Navbar, | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | @ -21,8 +23,5 @@ export default { | |||
|   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 not shown.
										
									
								
							| Before Width: | Height: | Size: 6.7 KiB | 
|  | @ -1,58 +0,0 @@ | |||
| <template> | ||||
|   <div class="hello"> | ||||
|     <h1>{{ msg }}</h1> | ||||
|     <p> | ||||
|       For a guide and recipes on how to configure / customize this project,<br> | ||||
|       check out the | ||||
|       <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>. | ||||
|     </p> | ||||
|     <h3>Installed CLI Plugins</h3> | ||||
|     <ul> | ||||
|       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li> | ||||
|       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li> | ||||
|     </ul> | ||||
|     <h3>Essential Links</h3> | ||||
|     <ul> | ||||
|       <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li> | ||||
|       <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li> | ||||
|       <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li> | ||||
|       <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li> | ||||
|       <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li> | ||||
|     </ul> | ||||
|     <h3>Ecosystem</h3> | ||||
|     <ul> | ||||
|       <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li> | ||||
|       <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li> | ||||
|       <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li> | ||||
|       <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li> | ||||
|       <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li> | ||||
|     </ul> | ||||
|   </div> | ||||
| </template> | ||||
| 
 | ||||
| <script> | ||||
| export default { | ||||
|   name: 'HelloWorld', | ||||
|   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> | ||||
							
								
								
									
										18
									
								
								src/components/MainContent.vue
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/components/MainContent.vue
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| <template> | ||||
|   <div class="hello"> | ||||
|     <h1>{{ headerText }}</h1> | ||||
|   </div> | ||||
| </template> | ||||
| 
 | ||||
| <script> | ||||
| export default { | ||||
|   name: 'MainContent', | ||||
|   props: { | ||||
|     headerText: String | ||||
|   } | ||||
| } | ||||
| </script> | ||||
| 
 | ||||
| <style scoped> | ||||
| 
 | ||||
| </style> | ||||
							
								
								
									
										25
									
								
								src/components/Navbar.vue
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								src/components/Navbar.vue
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| <template> | ||||
|     <nav class="navbar" role="navigation" aria-label="main navigation"> | ||||
|         <div class="navbar-brand"> | ||||
|             <a class="navbar-item"> | ||||
|                 <img src="https://vignette.wikia.nocookie.net/2007scape/images/b/be/Mr._Mordaut_chathead.png"> | ||||
|             </a> | ||||
|         </div> | ||||
|         <div class="navbar-menu"> | ||||
|             <div class="navbar-start"> | ||||
|             </div> | ||||
|             <div class="navbar-end"> | ||||
|             </div> | ||||
|         </div> | ||||
|     </nav> | ||||
| </template> | ||||
| 
 | ||||
| <script> | ||||
|     export default { | ||||
|         name: "Navbar" | ||||
|     } | ||||
| </script> | ||||
| 
 | ||||
| <style scoped> | ||||
| 
 | ||||
| </style> | ||||
|  | @ -1,12 +1,8 @@ | |||
| import Vue from 'vue' | ||||
| import Buefy from 'buefy' | ||||
| import 'buefy/dist/buefy.css' | ||||
| import App from './App.vue' | ||||
| 
 | ||||
| Vue.config.productionTip = false | ||||
| 
 | ||||
| Vue.use(Buefy) | ||||
| 
 | ||||
| new Vue({ | ||||
|   render: h => h(App), | ||||
| }).$mount('#app') | ||||
|  |  | |||
							
								
								
									
										27
									
								
								yarn.lock
									
										
									
									
									
								
							
							
						
						
									
										27
									
								
								yarn.lock
									
										
									
									
									
								
							|  | @ -822,6 +822,11 @@ | |||
|   resolved "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" | ||||
|   integrity sha1-K1o6s/kYzKSKjHVMCBaOPwPrphs= | ||||
| 
 | ||||
| "@popperjs/core@^2.0.4": | ||||
|   version "2.0.4" | ||||
|   resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.0.4.tgz#50fb4d10c712a7da4b64dc0add8d8ecaefa13bfa" | ||||
|   integrity sha512-uFsFsZjz/FyNpAW4pnbKBT50Jwe+5YwM0bYUfbArM1myDr7LtMrNScOFTxiwgf1TBNA2wFXW7/RRRlwjS+ILyQ== | ||||
| 
 | ||||
| "@soda/friendly-errors-webpack-plugin@^1.7.1": | ||||
|   version "1.7.1" | ||||
|   resolved "https://registry.npm.taobao.org/@soda/friendly-errors-webpack-plugin/download/@soda/friendly-errors-webpack-plugin-1.7.1.tgz#706f64bcb4a8b9642b48ae3ace444c70334d615d" | ||||
|  | @ -1667,6 +1672,11 @@ boolbase@^1.0.0, boolbase@~1.0.0: | |||
|   resolved "https://registry.npm.taobao.org/boolbase/download/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" | ||||
|   integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= | ||||
| 
 | ||||
| bootstrap@^4.4.1: | ||||
|   version "4.4.1" | ||||
|   resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.4.1.tgz#8582960eea0c5cd2bede84d8b0baf3789c3e8b01" | ||||
|   integrity sha512-tbx5cHubwE6e2ZG7nqM3g/FZ5PQEDMWmMGNrCUBVRPHXTJaH7CBDdsLeu3eCh3B1tzAxTnAbtmrzvWEvT2NNEA== | ||||
| 
 | ||||
| brace-expansion@^1.1.7: | ||||
|   version "1.1.11" | ||||
|   resolved "https://registry.npm.taobao.org/brace-expansion/download/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" | ||||
|  | @ -1764,13 +1774,6 @@ browserslist@^4.0.0, browserslist@^4.7.3, browserslist@^4.8.3, browserslist@^4.8 | |||
|     electron-to-chromium "^1.3.341" | ||||
|     node-releases "^1.1.47" | ||||
| 
 | ||||
| buefy@^0.8.10: | ||||
|   version "0.8.10" | ||||
|   resolved "https://registry.yarnpkg.com/buefy/-/buefy-0.8.10.tgz#e00a9e9ced4babcf01ada300c451fafced2a2b42" | ||||
|   integrity sha512-Lw/UP3Ku7o+oqam9TIoRMG5SrytGQwXWAoxAtqt6Wb9eSsMEqp/5o+jZnz8oteR06YWgjdSIfOv2YeEdjEkQCg== | ||||
|   dependencies: | ||||
|     bulma "0.7.5" | ||||
| 
 | ||||
| buffer-from@^1.0.0: | ||||
|   version "1.1.1" | ||||
|   resolved "https://registry.npm.taobao.org/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" | ||||
|  | @ -1805,11 +1808,6 @@ builtin-status-codes@^3.0.0: | |||
|   resolved "https://registry.npm.taobao.org/builtin-status-codes/download/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" | ||||
|   integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= | ||||
| 
 | ||||
| bulma@0.7.5: | ||||
|   version "0.7.5" | ||||
|   resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.5.tgz#35066c37f82c088b68f94450be758fc00a967208" | ||||
|   integrity sha512-cX98TIn0I6sKba/DhW0FBjtaDpxTelU166pf7ICXpCCuplHWyu6C9LYZmL5PEsnePIeJaiorsTEzzNk3Tsm1hw== | ||||
| 
 | ||||
| bytes@3.0.0: | ||||
|   version "3.0.0" | ||||
|   resolved "https://registry.npm.taobao.org/bytes/download/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" | ||||
|  | @ -4524,6 +4522,11 @@ jest-worker@^25.1.0: | |||
|     merge-stream "^2.0.0" | ||||
|     supports-color "^7.0.0" | ||||
| 
 | ||||
| jquery@^3.4.1: | ||||
|   version "3.4.1" | ||||
|   resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2" | ||||
|   integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw== | ||||
| 
 | ||||
| js-message@1.0.5: | ||||
|   version "1.0.5" | ||||
|   resolved "https://registry.npm.taobao.org/js-message/download/js-message-1.0.5.tgz#2300d24b1af08e89dd095bc1a4c9c9cfcb892d15" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue