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:
parent
a885a92cf7
commit
e04f479716
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/data/
|
||||
/node_modules/
|
||||
/config.ini
|
||||
/otadb.db3
|
||||
|
23
README.md
23
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
|
||||
```
|
||||
|
BIN
assets/MaterialIcons-Regular.eot
Normal file
BIN
assets/MaterialIcons-Regular.eot
Normal file
Binary file not shown.
BIN
assets/MaterialIcons-Regular.ttf
Normal file
BIN
assets/MaterialIcons-Regular.ttf
Normal file
Binary file not shown.
BIN
assets/MaterialIcons-Regular.woff
Normal file
BIN
assets/MaterialIcons-Regular.woff
Normal file
Binary file not shown.
BIN
assets/MaterialIcons-Regular.woff2
Normal file
BIN
assets/MaterialIcons-Regular.woff2
Normal file
Binary file not shown.
36
assets/material-icons.css
Normal file
36
assets/material-icons.css
Normal 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';
|
||||
}
|
@ -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
20
index_main.php
Executable file → Normal 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
13
package.json
Normal 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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user