mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Even more reindenting
This commit is contained in:
parent
887690074d
commit
d02641e802
2 changed files with 34 additions and 33 deletions
35
src/App.vue
35
src/App.vue
|
@ -25,24 +25,25 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Navigation from "@/components/Navigation";
|
import Navigation from '@/components/Navigation'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Navigation,
|
Navigation
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted () {
|
||||||
if (window.location.pathname === "/" || window.location.pathname.length == 0)
|
if (window.location.pathname === '/' || window.location.pathname.length == 0) {
|
||||||
switch (this.getPreferenceString("homepage", "trending")) {
|
switch (this.getPreferenceString('homepage', 'trending')) {
|
||||||
case "trending":
|
case 'trending':
|
||||||
break;
|
break
|
||||||
case "feed":
|
case 'feed':
|
||||||
this.$router.push("/feed");
|
this.$router.push('/feed')
|
||||||
return;
|
break
|
||||||
default:
|
default:
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
pwa: {
|
pwa: {
|
||||||
name: 'Piped',
|
name: 'Piped',
|
||||||
themeColor: '#fa4b4b',
|
themeColor: '#fa4b4b',
|
||||||
msTileColor: '#000000',
|
msTileColor: '#000000',
|
||||||
appleMobileWebAppCapable: 'yes',
|
appleMobileWebAppCapable: 'yes',
|
||||||
appleMobileWebAppStatusBarStyle: 'black',
|
appleMobileWebAppStatusBarStyle: 'black',
|
||||||
workboxPluginMode: 'GenerateSW',
|
workboxPluginMode: 'GenerateSW',
|
||||||
workboxOptions: {
|
workboxOptions: {
|
||||||
navigateFallback: 'index.html',
|
navigateFallback: 'index.html',
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
importWorkboxFrom: 'local',
|
importWorkboxFrom: 'local',
|
||||||
runtimeCaching: [{
|
runtimeCaching: [{
|
||||||
urlPattern: /\.(?:png|svg|ico)$/,
|
urlPattern: /\.(?:png|svg|ico)$/,
|
||||||
handler: 'CacheFirst',
|
handler: 'CacheFirst'
|
||||||
}],
|
}]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue