Skip to content

Instantly share code, notes, and snippets.

View erisu's full-sized avatar
🎯
Focusing

エリス erisu

🎯
Focusing
View GitHub Profile
@erisu
erisu / config.xml
Last active March 9, 2024 14:53
Cordova-iOS Native String Localizations config.xml File Example
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.apache.cordova.testLocaleProject" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>testLocaleProject</name>
<description>Sample Apache Cordova App</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
cordova-android@3.5.0
cordova-android@3.5.1
cordova-android@3.6.0
cordova-android@3.6.1
cordova-android@3.6.3
cordova-android@3.6.4
cordova-android@3.7.0
cordova-android@3.7.1
cordova-android@3.7.2
cordova-android@4.0.0
@erisu
erisu / manifest.json
Last active October 26, 2018 04:29
manifest.json for Vue.js PWA
{
"short_name": "FirstVuePWA",
"name": "First Vue PWA App",
"icons": [
{
"src": "/192.png",
"type": "image/png",
"sizes": "192x192"
},
{
@erisu
erisu / PageNotFound.vue
Created October 23, 2018 23:36
PageNotFound.vue for PWA Vue.js Project
<template>
<div>
<h1>Page Not Found</h1>
</div>
</template>
<style scoped>
h1 {
color: red
}
@erisu
erisu / Page1.vue
Created October 23, 2018 23:36
Page1.vue for PWA Vue.js Project
<template>
<div>
<h1>Page 1</h1>
</div>
</template>
<style scoped>
h1 {
color: green
}
@erisu
erisu / Home.vue
Created October 23, 2018 23:35
Home.vue for PWA Vue.js Project
<template>
<div>
<h1>Home</h1>
</div>
</template>
<style scoped>
h1 {
color: blue
}
@erisu
erisu / router.js
Created October 23, 2018 23:32
router.js PWA Vue.js Project
import Vue from 'vue'
import Router from 'vue-router'
// Page content
import Page1 from '@/components/Page1'
import Home from '@/components/Home'
// Fallback page
import PageNotFound from '@/components/PageNotFound'
@erisu
erisu / App.vue
Created October 23, 2018 23:30
App.vue for PWA Vue.js Project
<template>
<div>
<ul>
<li v-for="(link, index) in links" :key="index">
<router-link :to="link.to">{{ link.name }}</router-link>
</li>
</ul>
<main>
<router-view/>
</main>
@erisu
erisu / app.js
Created October 23, 2018 23:29
app.js for PWA Vue.js Project
import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
new Vue({
el: '#app',
router,
components: { App },
@erisu
erisu / index.html
Last active October 26, 2018 04:31
Static Index for PWA Vue.js Project
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Hello PWA!</title>
<meta name="Description" content="First PWA Vue.js App">
</head>
<body>