login working, added readme
|
|
@ -6,17 +6,17 @@
|
|||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="icons/site.webmanifest">
|
||||
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="icons/favicon.ico">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="pub/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="pub/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="pub/icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="pub/icons/site.webmanifest">
|
||||
<link rel="mask-icon" href="pub/icons/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="pub/icons/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="icons/browserconfig.xml">
|
||||
<meta name="msapplication-config" content="pub/icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<link rel="stylesheet" href="bulma-custom.css" />
|
||||
<link rel="stylesheet" href="pub/bulma-custom.css" />
|
||||
<link rel="stylesheet" href="client.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@ app.addComponent('navbar', (store) => { return new Reef("#navbar", {
|
|||
${refreshItem}
|
||||
|
||||
<a class="navbar-item has-text-right" data-onclick="navbar.logout">
|
||||
<span>sign out</span>
|
||||
<img alt="sign out" width="32" height="32" src="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICB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||||
<a>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,35 +6,29 @@
|
|||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="icons/site.webmanifest">
|
||||
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="icons/favicon.ico">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="pub/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="pub/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="pub/icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="pub/icons/site.webmanifest">
|
||||
<link rel="mask-icon" href="pub/icons/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="pub/icons/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="icons/browserconfig.xml">
|
||||
<meta name="msapplication-config" content="pub/icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<link rel="stylesheet" href="bulma-custom.css" />
|
||||
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css" />-->
|
||||
<link rel="stylesheet" href="pub/bulma-custom.css" />
|
||||
<link rel="stylesheet" href="client.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<!-- <script src="pulltorefresh.js"></script> -->
|
||||
<script src="reef.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="reef-bootstrap.js"></script>
|
||||
<script src="reef-databind.js"></script>
|
||||
|
||||
|
||||
<script src="utils.js"></script>
|
||||
|
||||
|
||||
<!-- <script src="client.js"></script> -->
|
||||
<script src="components/navbar.js"></script>
|
||||
<script src="components/brickwall.js"></script>
|
||||
<script src="components/pinzoom.js"></script>
|
||||
|
|
|
|||
7703
static/pub/bulma-custom.css
Normal file
BIN
static/pub/icons/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
static/pub/icons/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
static/pub/icons/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
9
static/pub/icons/browserconfig.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
BIN
static/pub/icons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
static/pub/icons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 711 B |
BIN
static/pub/icons/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
static/pub/icons/mstile-150x150.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
30
static/pub/icons/safari-pinned-tab.svg
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="1024.000000pt" height="1024.000000pt" viewBox="0 0 1024.000000 1024.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M5595 8451 c-120 -31 -196 -135 -191 -260 1 -41 10 -80 22 -103 11
|
||||
-21 99 -118 197 -216 97 -98 177 -181 177 -184 0 -11 -1210 -1218 -1221 -1218
|
||||
-5 0 -40 15 -77 34 -60 30 -226 92 -270 101 -9 2 -51 10 -93 19 -108 22 -158
|
||||
27 -294 27 -107 0 -145 -3 -220 -16 -268 -44 -482 -136 -690 -294 -103 -79
|
||||
-309 -286 -335 -338 -33 -64 -34 -168 -3 -229 14 -25 285 -303 719 -737 l698
|
||||
-697 -831 -833 c-913 -915 -864 -859 -859 -980 5 -102 76 -198 171 -231 59
|
||||
-20 151 -13 201 14 21 12 409 391 861 843 l822 821 690 -689 c402 -402 705
|
||||
-697 727 -708 21 -11 66 -22 100 -25 97 -7 144 20 291 169 66 68 134 140 150
|
||||
159 73 86 185 272 221 365 6 17 17 44 23 60 18 45 17 42 49 164 86 333 50 689
|
||||
-102 1010 l-40 84 609 609 609 609 184 -184 c161 -160 192 -187 240 -204 182
|
||||
-68 369 78 345 269 -4 29 -15 68 -25 88 -10 19 -609 627 -1332 1351 -971 974
|
||||
-1324 1321 -1353 1334 -46 20 -127 27 -170 16z m1168 -1719 l587 -587 -590
|
||||
-589 -590 -589 -589 589 -590 589 587 587 c323 323 589 588 592 588 3 0 269
|
||||
-264 593 -588z m-2671 -621 c140 -37 284 -108 380 -187 43 -35 1390 -1376
|
||||
1458 -1450 104 -115 204 -329 226 -484 10 -69 11 -239 1 -305 -23 -166 -110
|
||||
-359 -220 -488 l-24 -28 -1358 1355 -1358 1356 19 21 c44 49 214 149 309 182
|
||||
171 59 406 71 567 28z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
19
static/pub/icons/site.webmanifest
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@ function getOriginalImagePath(pinId){
|
|||
return "";
|
||||
}
|
||||
let paddedId = pinId.toString().padStart(12, '0');
|
||||
let dir = `originals/${paddedId[11]}/${paddedId[10]}/${paddedId[9]}/${paddedId[8]}`;
|
||||
let dir = `images/originals/${paddedId[11]}/${paddedId[10]}/${paddedId[9]}/${paddedId[8]}`;
|
||||
let file = `${dir}/${paddedId}.jpg`;
|
||||
return file;
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ function getThumbnailImagePath(pinId){
|
|||
return "";
|
||||
}
|
||||
let paddedId = pinId.toString().padStart(12, '0');
|
||||
let dir = `thumbnails/${paddedId[11]}/${paddedId[10]}/${paddedId[9]}/${paddedId[8]}`;
|
||||
let dir = `images/thumbnails/${paddedId[11]}/${paddedId[10]}/${paddedId[9]}/${paddedId[8]}`;
|
||||
let file = `${dir}/${paddedId}.jpg`;
|
||||
return file;
|
||||
}
|
||||
|
|
|
|||