Compare commits
	
		
			1 Commits
		
	
	
		
			feat/contr
			...
			refactor/w
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bf06559298 | 
| @@ -124,7 +124,7 @@ router.route("/wines/statistics/overall").get(async (req, res) => { | ||||
|         wines[wine._id] = { | ||||
|           name: wine.name, | ||||
|           occurences: wine.occurences, | ||||
|           vivinoLink: wine.vivinoLink, | ||||
|           link: wine.link, | ||||
|           rating: wine.rating, | ||||
|           image: wine.image, | ||||
|           id: wine.id, | ||||
|   | ||||
| @@ -32,7 +32,7 @@ router.route("/log/wines").post(mustBeAuthenticated, async (req, res) => { | ||||
|     let wine = wines[i]; | ||||
|     let newWonWine = new PreLotteryWine({ | ||||
|       name: wine.name, | ||||
|       vivinoLink: wine.vivinoLink, | ||||
|       link: wine.link, | ||||
|       rating: wine.rating, | ||||
|       image: wine.image, | ||||
|       price: wine.price, | ||||
| @@ -90,7 +90,7 @@ router.route("/log").post(mustBeAuthenticated, async (req, res) => { | ||||
|     if (wonWine == undefined) { | ||||
|       let newWonWine = new Wine({ | ||||
|         name: currentWinner.wine.name, | ||||
|         vivinoLink: currentWinner.wine.vivinoLink, | ||||
|         link: currentWinner.wine.link, | ||||
|         rating: currentWinner.wine.rating, | ||||
|         occurences: 1, | ||||
|         image: currentWinner.wine.image, | ||||
|   | ||||
| @@ -175,7 +175,7 @@ export default { | ||||
|           color: "", | ||||
|           wine: { | ||||
|             name: wine.name, | ||||
|             vivinoLink: wine.vivinoLink, | ||||
|             link: wine.link, | ||||
|             rating: wine.rating, | ||||
|             image: wine.image, | ||||
|             id: wine.id | ||||
| @@ -235,7 +235,7 @@ export default { | ||||
|         color: "", | ||||
|         wine: { | ||||
|           name: "", | ||||
|           vivinoLink: "", | ||||
|           link: "", | ||||
|           rating: "" | ||||
|         } | ||||
|       }); | ||||
|   | ||||
| @@ -73,7 +73,7 @@ export default { | ||||
|  | ||||
|       this.$emit("wine", { | ||||
|         name: response.name, | ||||
|         vivinoLink: "https://vinmonopolet.no" + response.url, | ||||
|         link: "https://vinmonopolet.no" + response.url, | ||||
|         price: response.price.value, | ||||
|         image: response.images[1].url, | ||||
|         country: response.main_country.name, | ||||
|   | ||||
| @@ -11,7 +11,7 @@ | ||||
|         <span v-if="wine.price">{{ wine.price }} NOK</span> | ||||
|         <span v-if="wine.country">{{ wine.country }}</span> | ||||
|  | ||||
|         <a v-if="wine.vivinoLink" :href="wine.vivinoLink" class="wine-link">Les mer på {{ hostname(wine.vivinoLink) }}</a> | ||||
|         <a v-if="wine.link" :href="wine.link" class="wine-link">Les mer på {{ hostname(wine.link) }}</a> | ||||
|       </div> | ||||
|  | ||||
|       <slot v-if="shouldUseInlineSlot()"></slot> | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
|         </span> | ||||
|         <a | ||||
|           class="wine-link" | ||||
|           :href="wine.vivinoLink" | ||||
|           :href="wine.link" | ||||
|           @click="wineClick(wine, $event)" | ||||
|           >Les mer</a> | ||||
|       </li> | ||||
| @@ -75,7 +75,7 @@ export default { | ||||
|       this.$ga.event({ | ||||
|         eventCategory: "Wines", | ||||
|         eventAction: "click", | ||||
|         eventValue: `${wine.name} - ${wine.vivinoLink}` | ||||
|         eventValue: `${wine.name} - ${wine.link}` | ||||
|       }); | ||||
|     }, | ||||
|     closeWine: function(event) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user