move dist from nuxt to root
@ -1,5 +1,5 @@
|
||||
# Business Card
|
||||
This is a repository with my personal angular-powered business card. Feel free to reuse this as a template for your own card but please refer back to me.
|
||||
This repository is my personal business card. Feel free to reuse this as a template for your own card but please refer back to me.
|
||||
With GitHub you can Present yourself easily and without a fee, as you can setup an account and use their hosting service.
|
||||
|
||||
1. SignUp/Register on GitHub to get to your profile
|
||||
@ -12,6 +12,8 @@ People love it when something moves and changes it's shape, so use the power of
|
||||
## Vue
|
||||
The new Version is build with VUE. Very similar to Angular you will get easy into it.
|
||||
|
||||
You can find all source files in [/nuxt](/nuxt)
|
||||
|
||||
![](nuxt.png)
|
||||
|
||||
Synthwave design based on https://codepen.io/inegoita/pen/BgdXMw?editors=1000
|
||||
@ -40,6 +42,8 @@ This page is completely build in [Angular 9](https://angular.io). Even if you ar
|
||||
- `ng generate component component-name`: run to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
||||
- `ng help`: To get more help on the Angular CLI or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
||||
|
||||
You can find all source files in [/anuglar](/angular)
|
||||
|
||||
![](angular.png)
|
||||
|
||||
### Angular Material
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 813 KiB After Width: | Height: | Size: 813 KiB |
Before Width: | Height: | Size: 921 KiB After Width: | Height: | Size: 921 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 813 KiB After Width: | Height: | Size: 813 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 485 KiB |
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 516 KiB After Width: | Height: | Size: 516 KiB |
Before Width: | Height: | Size: 330 KiB After Width: | Height: | Size: 330 KiB |
Before Width: | Height: | Size: 597 KiB After Width: | Height: | Size: 597 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 3.0 MiB After Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
1
nuxt/.gitignore
vendored
@ -67,6 +67,7 @@ typings/
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
Before Width: | Height: | Size: 650 KiB After Width: | Height: | Size: 650 KiB |
114
sw.js
Normal file
@ -0,0 +1,114 @@
|
||||
const options = {"workboxURL":"https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.4/workbox/workbox-sw.js","importScripts":[],"config":{"debug":false},"cacheOptions":{"cacheId":"wieerwill.github.io-prod","directoryIndex":"/","revision":"4mSsITzWDChA"},"clientsClaim":true,"skipWaiting":true,"cleanupOutdatedCaches":true,"offlineAnalytics":false,"preCaching":[{"revision":"4mSsITzWDChA","url":"/wieerwill.github.io/?standalone=true"}],"runtimeCaching":[{"urlPattern":"/wieerwill.github.io/_nuxt/","handler":"CacheFirst","method":"GET","strategyPlugins":[]},{"urlPattern":"/wieerwill.github.io/","handler":"NetworkFirst","method":"GET","strategyPlugins":[]}],"offlinePage":null,"pagesURLPattern":"/wieerwill.github.io/","offlineStrategy":"NetworkFirst"}
|
||||
|
||||
importScripts(...[options.workboxURL, ...options.importScripts])
|
||||
|
||||
initWorkbox(workbox, options)
|
||||
workboxExtensions(workbox, options)
|
||||
precacheAssets(workbox, options)
|
||||
cachingExtensions(workbox, options)
|
||||
runtimeCaching(workbox, options)
|
||||
offlinePage(workbox, options)
|
||||
routingExtensions(workbox, options)
|
||||
|
||||
function getProp(obj, prop) {
|
||||
return prop.split('.').reduce((p, c) => p[c], obj)
|
||||
}
|
||||
|
||||
function initWorkbox(workbox, options) {
|
||||
if (options.config) {
|
||||
// Set workbox config
|
||||
workbox.setConfig(options.config)
|
||||
}
|
||||
|
||||
if (options.cacheNames) {
|
||||
// Set workbox cache names
|
||||
workbox.core.setCacheNameDetails(options.cacheNames)
|
||||
}
|
||||
|
||||
if (options.clientsClaim) {
|
||||
// Start controlling any existing clients as soon as it activates
|
||||
workbox.core.clientsClaim()
|
||||
}
|
||||
|
||||
if (options.skipWaiting) {
|
||||
workbox.core.skipWaiting()
|
||||
}
|
||||
|
||||
if (options.cleanupOutdatedCaches) {
|
||||
workbox.precaching.cleanupOutdatedCaches()
|
||||
}
|
||||
|
||||
if (options.offlineAnalytics) {
|
||||
// Enable offline Google Analytics tracking
|
||||
workbox.googleAnalytics.initialize()
|
||||
}
|
||||
}
|
||||
|
||||
function precacheAssets(workbox, options) {
|
||||
if (options.preCaching.length) {
|
||||
workbox.precaching.precacheAndRoute(options.preCaching, options.cacheOptions)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function runtimeCaching(workbox, options) {
|
||||
const requestInterceptor = {
|
||||
requestWillFetch({ request }) {
|
||||
if (request.cache === 'only-if-cached' && request.mode === 'no-cors') {
|
||||
return new Request(request.url, { ...request, cache: 'default', mode: 'no-cors' })
|
||||
}
|
||||
return request
|
||||
},
|
||||
fetchDidFail(ctx) {
|
||||
ctx.error.message =
|
||||
'[workbox] Network request for ' + ctx.request.url + ' threw an error: ' + ctx.error.message
|
||||
console.error(ctx.error, 'Details:', ctx)
|
||||
},
|
||||
handlerDidError(ctx) {
|
||||
ctx.error.message =
|
||||
`[workbox] Network handler threw an error: ` + ctx.error.message
|
||||
console.error(ctx.error, 'Details:', ctx)
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
for (const entry of options.runtimeCaching) {
|
||||
const urlPattern = new RegExp(entry.urlPattern)
|
||||
const method = entry.method || 'GET'
|
||||
|
||||
const plugins = (entry.strategyPlugins || [])
|
||||
.map(p => new (getProp(workbox, p.use))(...p.config))
|
||||
|
||||
plugins.unshift(requestInterceptor)
|
||||
|
||||
const strategyOptions = { ...entry.strategyOptions, plugins }
|
||||
|
||||
const strategy = new workbox.strategies[entry.handler](strategyOptions)
|
||||
|
||||
workbox.routing.registerRoute(urlPattern, strategy, method)
|
||||
}
|
||||
}
|
||||
|
||||
function offlinePage(workbox, options) {
|
||||
if (options.offlinePage) {
|
||||
// Register router handler for offlinePage
|
||||
workbox.routing.registerRoute(new RegExp(options.pagesURLPattern), ({ request, event }) => {
|
||||
const strategy = new workbox.strategies[options.offlineStrategy]
|
||||
return strategy
|
||||
.handle({ request, event })
|
||||
.catch(() => caches.match(options.offlinePage))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function workboxExtensions(workbox, options) {
|
||||
|
||||
}
|
||||
|
||||
function cachingExtensions(workbox, options) {
|
||||
|
||||
}
|
||||
|
||||
function routingExtensions(workbox, options) {
|
||||
|
||||
}
|