From c0bd96be4baa022e05df54877149441c8c8deae1 Mon Sep 17 00:00:00 2001
From: kPherox
Date: Tue, 9 Apr 2019 00:33:51 +0900
Subject: [PATCH] Convert About.vue to vue class component with TypeScript
---
src/about/About.vue | 65 ++++++++++++++++++++++++++++++++-------------
vue.config.js | 4 +--
2 files changed, 49 insertions(+), 20 deletions(-)
diff --git a/src/about/About.vue b/src/about/About.vue
index 74649ea2..f47c1d2c 100644
--- a/src/about/About.vue
+++ b/src/about/About.vue
@@ -12,9 +12,9 @@
-
- - {{ versionName[name] }}
- - {{ name !== "codeName" ? versions[name] : codeName }}
+
+ - {{ version.name }}
+ - {{ version.version }}
@@ -64,22 +64,51 @@ dl.version {
}
-
diff --git a/vue.config.js b/vue.config.js
index 6e02de81..19e9f59e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -5,12 +5,12 @@ const { appId, copyright } = require("./info.json")
module.exports = {
pages: {
index: {
- entry: 'src/index/main.js',
+ entry: 'src/index/main.ts',
template: 'public/index.html',
title: productName,
},
about: {
- entry: 'src/about/main.js',
+ entry: 'src/about/main.ts',
template: 'public/index.html',
title: `About`,
},