diff --git a/README.md b/README.md index 4719573..89f7137 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ # FE_Charts Fire Emblem Charts is a mobile application that allows you to view the statistics of the characters in the game Fire Emblem Three Houses in the form of graphics. -## Setup the server +## Setup the app -Copy the `.env-example` file and rename it to `.env`, then set the value of each variables corresponding to your environments. +- Change the variables in the `database.php` file to match the server. +- Change the `BASE_URL` constant in the `database.js` file with the host corresponding to the server. -Install the dependencies with `npm install`, then run the server with `npm start` \ No newline at end of file +## Updating the catalogue + +After updating the catalogue, you must add a new row in the `Tbl_Catalogue` table with the new version of the catalogue and the date of the update. \ No newline at end of file diff --git a/mobile/config.xml b/mobile/config.xml index 26c12c6..92ec2bd 100644 --- a/mobile/config.xml +++ b/mobile/config.xml @@ -20,9 +20,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mobile/icons/android/Icon-144.png b/mobile/icons/android/Icon-144.png new file mode 100644 index 0000000..0edbe02 Binary files /dev/null and b/mobile/icons/android/Icon-144.png differ diff --git a/mobile/icons/android/Icon-192.png b/mobile/icons/android/Icon-192.png new file mode 100644 index 0000000..e6962b9 Binary files /dev/null and b/mobile/icons/android/Icon-192.png differ diff --git a/mobile/icons/android/Icon-36.png b/mobile/icons/android/Icon-36.png new file mode 100644 index 0000000..d52413a Binary files /dev/null and b/mobile/icons/android/Icon-36.png differ diff --git a/mobile/icons/android/Icon-48.png b/mobile/icons/android/Icon-48.png new file mode 100644 index 0000000..72f86c2 Binary files /dev/null and b/mobile/icons/android/Icon-48.png differ diff --git a/mobile/icons/android/Icon-72.png b/mobile/icons/android/Icon-72.png new file mode 100644 index 0000000..e95b64d Binary files /dev/null and b/mobile/icons/android/Icon-72.png differ diff --git a/mobile/icons/android/Icon-96.png b/mobile/icons/android/Icon-96.png new file mode 100644 index 0000000..5c65fb1 Binary files /dev/null and b/mobile/icons/android/Icon-96.png differ diff --git a/mobile/icons/ios/Icon-100.png b/mobile/icons/ios/Icon-100.png new file mode 100644 index 0000000..c974dc1 Binary files /dev/null and b/mobile/icons/ios/Icon-100.png differ diff --git a/mobile/icons/ios/Icon-114.png b/mobile/icons/ios/Icon-114.png new file mode 100644 index 0000000..e8bb69a Binary files /dev/null and b/mobile/icons/ios/Icon-114.png differ diff --git a/mobile/icons/ios/Icon-120.png b/mobile/icons/ios/Icon-120.png new file mode 100644 index 0000000..36c98c8 Binary files /dev/null and b/mobile/icons/ios/Icon-120.png differ diff --git a/mobile/icons/ios/Icon-144.png b/mobile/icons/ios/Icon-144.png new file mode 100644 index 0000000..0edbe02 Binary files /dev/null and b/mobile/icons/ios/Icon-144.png differ diff --git a/mobile/icons/ios/Icon-152.png b/mobile/icons/ios/Icon-152.png new file mode 100644 index 0000000..110dabb Binary files /dev/null and b/mobile/icons/ios/Icon-152.png differ diff --git a/mobile/icons/ios/Icon-167.png b/mobile/icons/ios/Icon-167.png new file mode 100644 index 0000000..e735bd6 Binary files /dev/null and b/mobile/icons/ios/Icon-167.png differ diff --git a/mobile/icons/ios/Icon-172.png b/mobile/icons/ios/Icon-172.png new file mode 100644 index 0000000..03fe999 Binary files /dev/null and b/mobile/icons/ios/Icon-172.png differ diff --git a/mobile/icons/ios/Icon-180.png b/mobile/icons/ios/Icon-180.png new file mode 100644 index 0000000..e6975cd Binary files /dev/null and b/mobile/icons/ios/Icon-180.png differ diff --git a/mobile/icons/ios/Icon-29.png b/mobile/icons/ios/Icon-29.png new file mode 100644 index 0000000..1042f2b Binary files /dev/null and b/mobile/icons/ios/Icon-29.png differ diff --git a/mobile/icons/ios/Icon-40.png b/mobile/icons/ios/Icon-40.png new file mode 100644 index 0000000..2762105 Binary files /dev/null and b/mobile/icons/ios/Icon-40.png differ diff --git a/mobile/icons/ios/Icon-50.png b/mobile/icons/ios/Icon-50.png new file mode 100644 index 0000000..019579f Binary files /dev/null and b/mobile/icons/ios/Icon-50.png differ diff --git a/mobile/icons/ios/Icon-57.png b/mobile/icons/ios/Icon-57.png new file mode 100644 index 0000000..43ddf52 Binary files /dev/null and b/mobile/icons/ios/Icon-57.png differ diff --git a/mobile/icons/ios/Icon-58.png b/mobile/icons/ios/Icon-58.png new file mode 100644 index 0000000..e047066 Binary files /dev/null and b/mobile/icons/ios/Icon-58.png differ diff --git a/mobile/icons/ios/Icon-60.png b/mobile/icons/ios/Icon-60.png new file mode 100644 index 0000000..501cd3d Binary files /dev/null and b/mobile/icons/ios/Icon-60.png differ diff --git a/mobile/icons/ios/Icon-72.png b/mobile/icons/ios/Icon-72.png new file mode 100644 index 0000000..e95b64d Binary files /dev/null and b/mobile/icons/ios/Icon-72.png differ diff --git a/mobile/icons/ios/Icon-76.png b/mobile/icons/ios/Icon-76.png new file mode 100644 index 0000000..7a864c0 Binary files /dev/null and b/mobile/icons/ios/Icon-76.png differ diff --git a/mobile/icons/ios/Icon-80.png b/mobile/icons/ios/Icon-80.png new file mode 100644 index 0000000..d98a2ef Binary files /dev/null and b/mobile/icons/ios/Icon-80.png differ diff --git a/mobile/package-lock.json b/mobile/package-lock.json index 0b5af5d..821fa31 100644 --- a/mobile/package-lock.json +++ b/mobile/package-lock.json @@ -279,6 +279,11 @@ "resolved": "https://registry.npmjs.org/cordova-plugin-network-information/-/cordova-plugin-network-information-2.0.2.tgz", "integrity": "sha512-NwO3qDBNL/vJxUxBTPNOA1HvkDf9eTeGH8JSZiwy1jq2W2mJKQEDBwqWkaEQS19Yd/MQTiw0cykxg5D7u4J6cQ==" }, + "cordova-plugin-splashscreen": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-5.0.3.tgz", + "integrity": "sha512-rnoDXMDfzoeHDBvsnu6JmzDE/pV5YJCAfc5hYX/Mb2BIXGgSjFJheByt0tU6kp3Wl40tSyFX4pYfBwFblBGyRg==" + }, "cordova-plugin-whitelist": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.4.tgz", diff --git a/mobile/package.json b/mobile/package.json index 49a1799..76f367b 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -17,7 +17,8 @@ "cordova-browser": "^6.0.0", "cordova-ios": "^5.1.1", "cordova-plugin-device": "^2.0.3", - "cordova-plugin-network-information": "^2.0.2" + "cordova-plugin-network-information": "^2.0.2", + "cordova-plugin-splashscreen": "^5.0.3" }, "devDependencies": { "cordova-plugin-whitelist": "^1.3.4" @@ -26,7 +27,8 @@ "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-device": {}, - "cordova-plugin-network-information": {} + "cordova-plugin-network-information": {}, + "cordova-plugin-splashscreen": {} }, "platforms": [ "android", diff --git a/mobile/res/screen/android/splash-land-hdpi.jpg b/mobile/res/screen/android/splash-land-hdpi.jpg new file mode 100644 index 0000000..ff6eafc Binary files /dev/null and b/mobile/res/screen/android/splash-land-hdpi.jpg differ diff --git a/mobile/res/screen/android/splash-land-ldpi.jpg b/mobile/res/screen/android/splash-land-ldpi.jpg new file mode 100644 index 0000000..3534860 Binary files /dev/null and b/mobile/res/screen/android/splash-land-ldpi.jpg differ diff --git a/mobile/res/screen/android/splash-land-mdpi.jpg b/mobile/res/screen/android/splash-land-mdpi.jpg new file mode 100644 index 0000000..7e124b2 Binary files /dev/null and b/mobile/res/screen/android/splash-land-mdpi.jpg differ diff --git a/mobile/res/screen/android/splash-land-xhdpi.jpg b/mobile/res/screen/android/splash-land-xhdpi.jpg new file mode 100644 index 0000000..90d1306 Binary files /dev/null and b/mobile/res/screen/android/splash-land-xhdpi.jpg differ diff --git a/mobile/res/screen/android/splash-land-xxhdpi.jpg b/mobile/res/screen/android/splash-land-xxhdpi.jpg new file mode 100644 index 0000000..9c3b014 Binary files /dev/null and b/mobile/res/screen/android/splash-land-xxhdpi.jpg differ diff --git a/mobile/res/screen/android/splash-land-xxxhdpi.jpg b/mobile/res/screen/android/splash-land-xxxhdpi.jpg new file mode 100644 index 0000000..0382790 Binary files /dev/null and b/mobile/res/screen/android/splash-land-xxxhdpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-hdpi.jpg b/mobile/res/screen/android/splash-port-hdpi.jpg new file mode 100644 index 0000000..b20630b Binary files /dev/null and b/mobile/res/screen/android/splash-port-hdpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-ldpi.jpg b/mobile/res/screen/android/splash-port-ldpi.jpg new file mode 100644 index 0000000..327b0cb Binary files /dev/null and b/mobile/res/screen/android/splash-port-ldpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-mdpi.jpg b/mobile/res/screen/android/splash-port-mdpi.jpg new file mode 100644 index 0000000..9d02c38 Binary files /dev/null and b/mobile/res/screen/android/splash-port-mdpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-xhdpi.jpg b/mobile/res/screen/android/splash-port-xhdpi.jpg new file mode 100644 index 0000000..1a855b4 Binary files /dev/null and b/mobile/res/screen/android/splash-port-xhdpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-xxhdpi.jpg b/mobile/res/screen/android/splash-port-xxhdpi.jpg new file mode 100644 index 0000000..4ddb542 Binary files /dev/null and b/mobile/res/screen/android/splash-port-xxhdpi.jpg differ diff --git a/mobile/res/screen/android/splash-port-xxxhdpi.jpg b/mobile/res/screen/android/splash-port-xxxhdpi.jpg new file mode 100644 index 0000000..def39a1 Binary files /dev/null and b/mobile/res/screen/android/splash-port-xxxhdpi.jpg differ diff --git a/mobile/www/css/index.css b/mobile/www/css/index.css index c72b6ea..c6e1eaa 100644 --- a/mobile/www/css/index.css +++ b/mobile/www/css/index.css @@ -20,4 +20,19 @@ .data-table-title { text-align: center; +} + +.text-center { + text-align: center; +} + +.logo { + display: block; + margin-left: auto; + margin-right: auto; +} + +h1.about, h2.about, h3.about { + color: #1f3487; + margin-top: 0px; } \ No newline at end of file diff --git a/mobile/www/img/logo.png b/mobile/www/img/logo.png new file mode 100644 index 0000000..0edbe02 Binary files /dev/null and b/mobile/www/img/logo.png differ diff --git a/mobile/www/js/routes.js b/mobile/www/js/routes.js index fae6d17..63bd12a 100644 --- a/mobile/www/js/routes.js +++ b/mobile/www/js/routes.js @@ -80,7 +80,13 @@ routes = [ }, { path: '/about/', - templateUrl: './pages/about.html' + templateUrl: './pages/about.html', + on: { + pageAfterIn: (e, page) => { + if (feData.version) + $$("#catalogue-version").text(feData.version); + }, + } }, ]; diff --git a/mobile/www/pages/about.html b/mobile/www/pages/about.html index bbe4d85..360db46 100644 --- a/mobile/www/pages/about.html +++ b/mobile/www/pages/about.html @@ -12,9 +12,29 @@
-
-

Aboutpage

+
+
+ +

Fire Emblem Charts

+
+
+

Versions

+

App : 1.0.0

+

Catalogue :

+
+
+

About the app

+

+ Fire Emblem Charts is a mobile application that allows you to view the statistics of the + characters in the game Fire Emblem Three Houses in the form of graphics.
+ Source code +

+
+
+

Developer

+

Dario Genga

+
- + \ No newline at end of file