diff --git a/.gitignore b/.gitignore index c0b211b..9c32455 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /data/ +/node_modules/ /config.ini /otadb.db3 diff --git a/README.md b/README.md index b9a7f51..235b048 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,26 @@ This is going to be a web service to collect information about new updates from [tcl_ota_check](https://github.com/mbirth/tcl_ota_check) tools. Also it will display a table of all (found) updates and the date when they were discovered. + + +Installation +============ + +Clone the repository to a folder on your webserver. To download dependencies, install `npm` and +run: + +``` +npm install +``` + +Create the database by running: + +``` +bin/initdb.sh +``` + +Put XML files to import into the `data/` directory and import them with: + +``` +bin/parse_files.php +``` diff --git a/assets/MaterialIcons-Regular.eot b/assets/MaterialIcons-Regular.eot new file mode 100644 index 0000000..70508eb Binary files /dev/null and b/assets/MaterialIcons-Regular.eot differ diff --git a/assets/MaterialIcons-Regular.ttf b/assets/MaterialIcons-Regular.ttf new file mode 100644 index 0000000..7015564 Binary files /dev/null and b/assets/MaterialIcons-Regular.ttf differ diff --git a/assets/MaterialIcons-Regular.woff b/assets/MaterialIcons-Regular.woff new file mode 100644 index 0000000..b648a3e Binary files /dev/null and b/assets/MaterialIcons-Regular.woff differ diff --git a/assets/MaterialIcons-Regular.woff2 b/assets/MaterialIcons-Regular.woff2 new file mode 100644 index 0000000..9fa2112 Binary files /dev/null and b/assets/MaterialIcons-Regular.woff2 differ diff --git a/assets/material-icons.css b/assets/material-icons.css new file mode 100644 index 0000000..a5514b1 --- /dev/null +++ b/assets/material-icons.css @@ -0,0 +1,36 @@ +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + src: url('MaterialIcons-Regular.eot'); /* For IE6-8 */ + src: local('Material Icons'), + local('MaterialIcons-Regular'), + url('MaterialIcons-Regular.woff2') format('woff2'), + url('MaterialIcons-Regular.woff') format('woff'), + url('MaterialIcons-Regular.ttf') format('truetype'); +} + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + + /* Support for IE. */ + font-feature-settings: 'liga'; +} diff --git a/assets/style.css b/assets/style.css index e7a1ee0..4b70ac9 100644 --- a/assets/style.css +++ b/assets/style.css @@ -1,3 +1,8 @@ +:root { + --mdc-theme-primary: #1b5e20; + --mdc-theme-secondary: #f9a825; +} + body { font-family: sans-serif; } diff --git a/index_main.php b/index_main.php old mode 100755 new mode 100644 index 296e4b8..13a145c --- a/index_main.php +++ b/index_main.php @@ -1,10 +1,21 @@ - BlackBerry/TCL Firmware List - + BlackBerry/TCL Firmware List + + + - + +
+
+
+ BlackBerry/TCL Firmware List +
+
+
+
+
$models) { } } ?> +
+ + diff --git a/package.json b/package.json new file mode 100644 index 0000000..743ee84 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "tcl_update_db", + "version": "1.0", + "description": "Web based database for (Android) updates of TCL devices.", + "homepage": "https://github.com/mbirth/tcl_update_db", + "repository": { + "type": "git", + "url": "mbirth/tcl_update_db" + }, + "dependencies": { + "material-components-web": "^0.27.0" + } +}