1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-25 03:54:06 +00:00

A bit of Material Design.

This commit is contained in:
Markus Birth 2017-12-29 00:46:12 +01:00
parent a885a92cf7
commit e04f479716
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
10 changed files with 95 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/data/
/node_modules/
/config.ini
/otadb.db3

View File

@ -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
```

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

36
assets/material-icons.css Normal file
View File

@ -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';
}

View File

@ -1,3 +1,8 @@
:root {
--mdc-theme-primary: #1b5e20;
--mdc-theme-secondary: #f9a825;
}
body {
font-family: sans-serif;
}

20
index_main.php Executable file → Normal file
View File

@ -1,10 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>BlackBerry/TCL Firmware List</title>
<link rel="stylesheet" href="assets/style.css"/>
<title>BlackBerry/TCL Firmware List</title>
<link rel="stylesheet" href="node_modules/material-components-web/dist/material-components-web.css"/>
<link rel="stylesheet" href="assets/material-icons.css"/>
<link rel="stylesheet" href="assets/style.css"/>
</head>
<body>
<body class="mdc-typography">
<header class="mdc-toolbar mdc-toolbar--fixed">
<div class="mdc-toolbar__row">
<section class="mdc-toolbar__section mdc-toolbar__section--align-start">
<span class="mdc-toolbar__title">BlackBerry/TCL Firmware List</span>
</section>
</div>
</header>
<main>
<div class="mdc-toolbar-fixed-adjust"></div>
<?php
require_once __DIR__ . '/lib/autoloader.php';
@ -57,5 +68,8 @@ foreach ($allVars as $family => $models) {
}
}
?>
</main>
<script src="node_modules/material-components-web/dist/material-components-web.js"></script>
<script>window.mdc.autoInit()</script>
</body>
</html>

13
package.json Normal file
View File

@ -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"
}
}