First commit
This commit is contained in:
commit
201edf2e4a
115 changed files with 29451 additions and 0 deletions
14
.github/CONTRIBUTING.md
vendored
Normal file
14
.github/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
# How to Contribute
|
||||
|
||||
## Pull Requests
|
||||
|
||||
1. Fork the repository
|
||||
2. Create a new branch for each feature or improvement
|
||||
3. Send a pull request from each feature branch to the master branch
|
||||
|
||||
It is very important to separate new features or improvements into separate feature branches, and to send a
|
||||
pull request for each branch. This allows us to review and pull in new features or improvements individually.
|
||||
|
||||
## Style Guide
|
||||
|
||||
All pull requests must adhere to the [PSR-2 standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
src/settings.php
|
||||
vendor/
|
||||
/logs/*
|
||||
!/logs/README.md
|
||||
cache/
|
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Friendica Global Directory
|
||||
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
2.0-dev
|
10
bin/console
Normal file
10
bin/console
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
|
||||
|
||||
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
|
||||
# We are in Cgywin using Windows php, so the path must be translated
|
||||
dir=$(cygpath -m "$dir");
|
||||
fi
|
||||
|
||||
"${dir}/console.php" "$@"
|
4
bin/console.bat
Normal file
4
bin/console.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@ECHO OFF
|
||||
setlocal DISABLEDELAYEDEXPANSION
|
||||
SET BIN_TARGET=%~dp0/console.php
|
||||
php "%BIN_TARGET%" %*
|
19
bin/console.php
Normal file
19
bin/console.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
ini_set('error_log', __DIR__ . '/../logs/console.log');
|
||||
ini_set('log_errors', true);
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$settings = require __DIR__ . '/../src/settings.php';
|
||||
|
||||
$settings['settings']['logger']['path'] = 'php://stdout';
|
||||
$settings['settings']['logger']['level'] = \Monolog\Logger::INFO;
|
||||
$settings['settings']['logger']['formatter'] = 'console';
|
||||
|
||||
$container = new Slim\Container($settings);
|
||||
|
||||
require __DIR__ . '/../src/dependencies.php';
|
||||
|
||||
(new \Friendica\Directory\Controllers\Console($container, $argv))->execute();
|
10
bin/cron
Normal file
10
bin/cron
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
|
||||
|
||||
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
|
||||
# We are in Cgywin using Windows php, so the path must be translated
|
||||
dir=$(cygpath -m "$dir");
|
||||
fi
|
||||
|
||||
"${dir}/cron.php" "$@"
|
4
bin/cron.bat
Normal file
4
bin/cron.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@ECHO OFF
|
||||
setlocal DISABLEDELAYEDEXPANSION
|
||||
SET BIN_TARGET=%~dp0/cron.php
|
||||
php "%BIN_TARGET%" %*
|
23
bin/cron.php
Normal file
23
bin/cron.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
ini_set('error_log', __DIR__ . '/../logs/cron.log');
|
||||
ini_set('log_errors', true);
|
||||
ini_set('display_errors', false);
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$settings = require __DIR__ . '/../src/settings.php';
|
||||
|
||||
$container = new Slim\Container($settings);
|
||||
|
||||
require __DIR__ . '/../src/dependencies.php';
|
||||
|
||||
(new \Friendica\Directory\Controllers\Cron(
|
||||
$container->get('atlas'),
|
||||
$container->get('\Friendica\Directory\Pollers\Profile'),
|
||||
$container->get('\Friendica\Directory\Pollers\Server'),
|
||||
$container->get('\Friendica\Directory\Pollers\Directory'),
|
||||
$container->get('logger')
|
||||
))->execute();
|
||||
|
70
composer.json
Normal file
70
composer.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"name": "friendica/friendica-directory",
|
||||
"description": "Standalone global public directory for Friendica",
|
||||
"type": "project",
|
||||
"keywords": ["friendica", "directory"],
|
||||
"license": "AGPL-3.0+",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Hypolite Petovan",
|
||||
"email": "hypolite@mrpetovan.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1.0",
|
||||
"ext-curl": "*",
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
"asika/simple-console": "^1.0",
|
||||
"atlas/pdo": "^1.1",
|
||||
"byjg/migration": "^2.1",
|
||||
"fxp/composer-asset-plugin": "^1.4",
|
||||
"masterminds/html5": "^2.3",
|
||||
"monolog/monolog": "^1.17",
|
||||
"mrpetovan/net_ping": "^1.0",
|
||||
"sarahman/simple-filesystem-cache": "dev-master",
|
||||
"seld/cli-prompt": "^1.0",
|
||||
"slim/slim": "^3.1",
|
||||
"slim/php-view": "^2.0",
|
||||
"zendframework/zend-escaper": "^2.6",
|
||||
"bower-asset/bootstrap.native": "^2.0",
|
||||
"bower-asset/fontawesome": "^5.5",
|
||||
"gofabian/negotiation-middleware": "^0.1.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"bower-asset/bootstrap": "^4.1",
|
||||
"phpunit/phpunit": ">=4.8 < 6.0",
|
||||
"vimeo/psalm": "^2.0",
|
||||
"leafo/scssphp": "^0.7.7"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Friendica\\Directory\\": "src/classes/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"process-timeout" : 0,
|
||||
"autoloader-suffix": "FriendicaDirectory",
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": "dist",
|
||||
"fxp-asset": {
|
||||
"installer-paths": {
|
||||
"npm-asset-library": "public/assets/vendor/",
|
||||
"bower-asset-library": "public/assets/vendor/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-create-project-cmd" : [
|
||||
"php bin/console.php install"
|
||||
],
|
||||
"post-install-cmd" : [
|
||||
"php bin/console.php dbupdate"
|
||||
]
|
||||
}
|
||||
}
|
4126
composer.lock
generated
Normal file
4126
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
4
config/.gitignore
vendored
Normal file
4
config/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
0
docs/Install.md
Normal file
0
docs/Install.md
Normal file
88
docs/Protocol.md
Normal file
88
docs/Protocol.md
Normal file
|
@ -0,0 +1,88 @@
|
|||
# Friendica Directory Protocol
|
||||
|
||||
## Search
|
||||
|
||||
```
|
||||
GET /search[/account_type]?q=...
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
Parameters:
|
||||
- `account_type`: An arbitrary account type string. Currently supported are `all`, `people` and `forum`. Default is `all`.
|
||||
- `q`: The search query.
|
||||
|
||||
Returns a JSON structure containing a paginated list profiles matching the search query and the optional account type.
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
{
|
||||
"query": "philosophy",
|
||||
"page": 1,
|
||||
"itemsperpage": 20,
|
||||
"count": "13",
|
||||
"profiles": [
|
||||
{
|
||||
"id": "2259",
|
||||
"name": "Hyp🌧lite Pe☂ov🍃n (he/him)",
|
||||
"username": "hypolite",
|
||||
"addr": "hypolite@friendica.mrpetovan.com",
|
||||
"account_type": "People",
|
||||
"pdesc": "Subpar geek, french/english, science, games, feminism, jokes and anything in between. Avatar by @DearMsDear@mastodon.art",
|
||||
"locality": "Brooklyn",
|
||||
"region": "New York",
|
||||
"country": "USA",
|
||||
"profile_url": "https://friendica.mrpetovan.com/profile/hypolite",
|
||||
"dfrn_request": "https://friendica.mrpetovan.com/dfrn_request/hypolite",
|
||||
"photo": "https://friendica.mrpetovan.com/photo/27330388315ae4ed2b03e3c116980490-4.jpg?ts=1541567135",
|
||||
"tags": "videogame gaming boardgame politics philosophy development programming php",
|
||||
"last_activity": "2018-45"
|
||||
},
|
||||
...
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Profile submission
|
||||
|
||||
`GET /submit?url=...`
|
||||
|
||||
Parameters:
|
||||
- `url`: a hexadecimal-encoded profile URL to be added to the directory.
|
||||
|
||||
The success of the operation is indicated by the HTTP response code.
|
||||
|
||||
## Synchronization
|
||||
|
||||
`GET /sync/pull/all`
|
||||
|
||||
Returns a JSON structure containing all the profiles displayed by the directory.
|
||||
|
||||
Example:
|
||||
```json
|
||||
{
|
||||
now: 1541942034,
|
||||
count: 7435,
|
||||
results: [
|
||||
"http://example.com/profile/test",
|
||||
...
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
`GET /sync/pull/since/1541942034`
|
||||
|
||||
Returns a JSON structure containing profiles displayed by the directory that have been updated since the provided UNIX timestamp.
|
||||
|
||||
Example:
|
||||
```json
|
||||
{
|
||||
now: 1541942160,
|
||||
count: 2766,
|
||||
results: [
|
||||
"http://example.com/profile/test",
|
||||
...
|
||||
]
|
||||
}
|
||||
```
|
4
logs/.gitignore
vendored
Normal file
4
logs/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
7
phpunit.xml
Normal file
7
phpunit.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<phpunit bootstrap="vendor/autoload.php">
|
||||
<testsuites>
|
||||
<testsuite name="SlimSkeleton">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
47
psalm.xml
Normal file
47
psalm.xml
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="false"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config file://D:\Projects\Friendica\MrPetovan\friendica-directory\vendor\vimeo\psalm\config.xsd"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="src" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
|
||||
<issueHandlers>
|
||||
<LessSpecificReturnType errorLevel="info" />
|
||||
|
||||
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
|
||||
|
||||
<DeprecatedMethod errorLevel="info" />
|
||||
<DeprecatedProperty errorLevel="info" />
|
||||
<DeprecatedClass errorLevel="info" />
|
||||
<DeprecatedConstant errorLevel="info" />
|
||||
<DeprecatedInterface errorLevel="info" />
|
||||
<DeprecatedTrait errorLevel="info" />
|
||||
|
||||
<MissingClosureReturnType errorLevel="info" />
|
||||
<MissingReturnType errorLevel="info" />
|
||||
<MissingPropertyType errorLevel="info" />
|
||||
<InvalidDocblock errorLevel="info" />
|
||||
<MisplacedRequiredParam errorLevel="info" />
|
||||
|
||||
<PropertyNotSetInConstructor errorLevel="info" />
|
||||
<MissingConstructor errorLevel="info" />
|
||||
<MissingClosureParamType errorLevel="info" />
|
||||
<MissingParamType errorLevel="info" />
|
||||
|
||||
<RedundantCondition errorLevel="info" />
|
||||
|
||||
<DocblockTypeContradiction errorLevel="info" />
|
||||
<RedundantConditionGivenDocblockType errorLevel="info" />
|
||||
|
||||
<UnresolvableInclude errorLevel="info" />
|
||||
|
||||
<RawObjectIteration errorLevel="info" />
|
||||
</issueHandlers>
|
||||
</psalm>
|
21
public/.htaccess
Normal file
21
public/.htaccess
Normal file
|
@ -0,0 +1,21 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# Some hosts may require you to use the `RewriteBase` directive.
|
||||
# Determine the RewriteBase automatically and set it as environment variable.
|
||||
# If you are using Apache aliases to do mass virtual hosting or installed the
|
||||
# project in a subdirectory, the base path will be prepended to allow proper
|
||||
# resolution of the index.php file and to redirect to the correct URI. It will
|
||||
# work in environments without path prefix as well, providing a safe, one-size
|
||||
# fits all solution. But as you do not need it in this case, you can comment
|
||||
# the following 2 lines to eliminate the overhead.
|
||||
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
|
||||
RewriteRule ^(.*) - [E=BASE:%1]
|
||||
|
||||
# If the above doesn't work you might need to set the `RewriteBase` directive manually, it should be the
|
||||
# absolute physical path to the directory that contains this htaccess file.
|
||||
# RewriteBase /
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
</IfModule>
|
6816
public/assets/css/friendica-directory.css
Normal file
6816
public/assets/css/friendica-directory.css
Normal file
File diff suppressed because it is too large
Load diff
1
public/assets/css/friendica-directory.min.css
vendored
Normal file
1
public/assets/css/friendica-directory.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
952
public/assets/css/open-iconic-bootstrap.css
Normal file
952
public/assets/css/open-iconic-bootstrap.css
Normal file
|
@ -0,0 +1,952 @@
|
|||
/* Bootstrap */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: url('../fonts/open-iconic.eot');
|
||||
src: url('../fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.otf') format('opentype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.oi {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
speak:none;
|
||||
font-family: 'Icons';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.oi:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.oi.oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oi.oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.oi.oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
.oi.oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
.oi.oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
.oi.oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
|
||||
|
||||
.oi-account-login:before {
|
||||
content:'\e000';
|
||||
}
|
||||
|
||||
.oi-account-logout:before {
|
||||
content:'\e001';
|
||||
}
|
||||
|
||||
.oi-action-redo:before {
|
||||
content:'\e002';
|
||||
}
|
||||
|
||||
.oi-action-undo:before {
|
||||
content:'\e003';
|
||||
}
|
||||
|
||||
.oi-align-center:before {
|
||||
content:'\e004';
|
||||
}
|
||||
|
||||
.oi-align-left:before {
|
||||
content:'\e005';
|
||||
}
|
||||
|
||||
.oi-align-right:before {
|
||||
content:'\e006';
|
||||
}
|
||||
|
||||
.oi-aperture:before {
|
||||
content:'\e007';
|
||||
}
|
||||
|
||||
.oi-arrow-bottom:before {
|
||||
content:'\e008';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-bottom:before {
|
||||
content:'\e009';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-left:before {
|
||||
content:'\e00a';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-right:before {
|
||||
content:'\e00b';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-top:before {
|
||||
content:'\e00c';
|
||||
}
|
||||
|
||||
.oi-arrow-left:before {
|
||||
content:'\e00d';
|
||||
}
|
||||
|
||||
.oi-arrow-right:before {
|
||||
content:'\e00e';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-bottom:before {
|
||||
content:'\e00f';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-left:before {
|
||||
content:'\e010';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-right:before {
|
||||
content:'\e011';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-top:before {
|
||||
content:'\e012';
|
||||
}
|
||||
|
||||
.oi-arrow-top:before {
|
||||
content:'\e013';
|
||||
}
|
||||
|
||||
.oi-audio-spectrum:before {
|
||||
content:'\e014';
|
||||
}
|
||||
|
||||
.oi-audio:before {
|
||||
content:'\e015';
|
||||
}
|
||||
|
||||
.oi-badge:before {
|
||||
content:'\e016';
|
||||
}
|
||||
|
||||
.oi-ban:before {
|
||||
content:'\e017';
|
||||
}
|
||||
|
||||
.oi-bar-chart:before {
|
||||
content:'\e018';
|
||||
}
|
||||
|
||||
.oi-basket:before {
|
||||
content:'\e019';
|
||||
}
|
||||
|
||||
.oi-battery-empty:before {
|
||||
content:'\e01a';
|
||||
}
|
||||
|
||||
.oi-battery-full:before {
|
||||
content:'\e01b';
|
||||
}
|
||||
|
||||
.oi-beaker:before {
|
||||
content:'\e01c';
|
||||
}
|
||||
|
||||
.oi-bell:before {
|
||||
content:'\e01d';
|
||||
}
|
||||
|
||||
.oi-bluetooth:before {
|
||||
content:'\e01e';
|
||||
}
|
||||
|
||||
.oi-bold:before {
|
||||
content:'\e01f';
|
||||
}
|
||||
|
||||
.oi-bolt:before {
|
||||
content:'\e020';
|
||||
}
|
||||
|
||||
.oi-book:before {
|
||||
content:'\e021';
|
||||
}
|
||||
|
||||
.oi-bookmark:before {
|
||||
content:'\e022';
|
||||
}
|
||||
|
||||
.oi-box:before {
|
||||
content:'\e023';
|
||||
}
|
||||
|
||||
.oi-briefcase:before {
|
||||
content:'\e024';
|
||||
}
|
||||
|
||||
.oi-british-pound:before {
|
||||
content:'\e025';
|
||||
}
|
||||
|
||||
.oi-browser:before {
|
||||
content:'\e026';
|
||||
}
|
||||
|
||||
.oi-brush:before {
|
||||
content:'\e027';
|
||||
}
|
||||
|
||||
.oi-bug:before {
|
||||
content:'\e028';
|
||||
}
|
||||
|
||||
.oi-bullhorn:before {
|
||||
content:'\e029';
|
||||
}
|
||||
|
||||
.oi-calculator:before {
|
||||
content:'\e02a';
|
||||
}
|
||||
|
||||
.oi-calendar:before {
|
||||
content:'\e02b';
|
||||
}
|
||||
|
||||
.oi-camera-slr:before {
|
||||
content:'\e02c';
|
||||
}
|
||||
|
||||
.oi-caret-bottom:before {
|
||||
content:'\e02d';
|
||||
}
|
||||
|
||||
.oi-caret-left:before {
|
||||
content:'\e02e';
|
||||
}
|
||||
|
||||
.oi-caret-right:before {
|
||||
content:'\e02f';
|
||||
}
|
||||
|
||||
.oi-caret-top:before {
|
||||
content:'\e030';
|
||||
}
|
||||
|
||||
.oi-cart:before {
|
||||
content:'\e031';
|
||||
}
|
||||
|
||||
.oi-chat:before {
|
||||
content:'\e032';
|
||||
}
|
||||
|
||||
.oi-check:before {
|
||||
content:'\e033';
|
||||
}
|
||||
|
||||
.oi-chevron-bottom:before {
|
||||
content:'\e034';
|
||||
}
|
||||
|
||||
.oi-chevron-left:before {
|
||||
content:'\e035';
|
||||
}
|
||||
|
||||
.oi-chevron-right:before {
|
||||
content:'\e036';
|
||||
}
|
||||
|
||||
.oi-chevron-top:before {
|
||||
content:'\e037';
|
||||
}
|
||||
|
||||
.oi-circle-check:before {
|
||||
content:'\e038';
|
||||
}
|
||||
|
||||
.oi-circle-x:before {
|
||||
content:'\e039';
|
||||
}
|
||||
|
||||
.oi-clipboard:before {
|
||||
content:'\e03a';
|
||||
}
|
||||
|
||||
.oi-clock:before {
|
||||
content:'\e03b';
|
||||
}
|
||||
|
||||
.oi-cloud-download:before {
|
||||
content:'\e03c';
|
||||
}
|
||||
|
||||
.oi-cloud-upload:before {
|
||||
content:'\e03d';
|
||||
}
|
||||
|
||||
.oi-cloud:before {
|
||||
content:'\e03e';
|
||||
}
|
||||
|
||||
.oi-cloudy:before {
|
||||
content:'\e03f';
|
||||
}
|
||||
|
||||
.oi-code:before {
|
||||
content:'\e040';
|
||||
}
|
||||
|
||||
.oi-cog:before {
|
||||
content:'\e041';
|
||||
}
|
||||
|
||||
.oi-collapse-down:before {
|
||||
content:'\e042';
|
||||
}
|
||||
|
||||
.oi-collapse-left:before {
|
||||
content:'\e043';
|
||||
}
|
||||
|
||||
.oi-collapse-right:before {
|
||||
content:'\e044';
|
||||
}
|
||||
|
||||
.oi-collapse-up:before {
|
||||
content:'\e045';
|
||||
}
|
||||
|
||||
.oi-command:before {
|
||||
content:'\e046';
|
||||
}
|
||||
|
||||
.oi-comment-square:before {
|
||||
content:'\e047';
|
||||
}
|
||||
|
||||
.oi-compass:before {
|
||||
content:'\e048';
|
||||
}
|
||||
|
||||
.oi-contrast:before {
|
||||
content:'\e049';
|
||||
}
|
||||
|
||||
.oi-copywriting:before {
|
||||
content:'\e04a';
|
||||
}
|
||||
|
||||
.oi-credit-card:before {
|
||||
content:'\e04b';
|
||||
}
|
||||
|
||||
.oi-crop:before {
|
||||
content:'\e04c';
|
||||
}
|
||||
|
||||
.oi-dashboard:before {
|
||||
content:'\e04d';
|
||||
}
|
||||
|
||||
.oi-data-transfer-download:before {
|
||||
content:'\e04e';
|
||||
}
|
||||
|
||||
.oi-data-transfer-upload:before {
|
||||
content:'\e04f';
|
||||
}
|
||||
|
||||
.oi-delete:before {
|
||||
content:'\e050';
|
||||
}
|
||||
|
||||
.oi-dial:before {
|
||||
content:'\e051';
|
||||
}
|
||||
|
||||
.oi-document:before {
|
||||
content:'\e052';
|
||||
}
|
||||
|
||||
.oi-dollar:before {
|
||||
content:'\e053';
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-left:before {
|
||||
content:'\e054';
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-right:before {
|
||||
content:'\e055';
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-left:before {
|
||||
content:'\e056';
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-right:before {
|
||||
content:'\e057';
|
||||
}
|
||||
|
||||
.oi-droplet:before {
|
||||
content:'\e058';
|
||||
}
|
||||
|
||||
.oi-eject:before {
|
||||
content:'\e059';
|
||||
}
|
||||
|
||||
.oi-elevator:before {
|
||||
content:'\e05a';
|
||||
}
|
||||
|
||||
.oi-ellipses:before {
|
||||
content:'\e05b';
|
||||
}
|
||||
|
||||
.oi-envelope-closed:before {
|
||||
content:'\e05c';
|
||||
}
|
||||
|
||||
.oi-envelope-open:before {
|
||||
content:'\e05d';
|
||||
}
|
||||
|
||||
.oi-euro:before {
|
||||
content:'\e05e';
|
||||
}
|
||||
|
||||
.oi-excerpt:before {
|
||||
content:'\e05f';
|
||||
}
|
||||
|
||||
.oi-expand-down:before {
|
||||
content:'\e060';
|
||||
}
|
||||
|
||||
.oi-expand-left:before {
|
||||
content:'\e061';
|
||||
}
|
||||
|
||||
.oi-expand-right:before {
|
||||
content:'\e062';
|
||||
}
|
||||
|
||||
.oi-expand-up:before {
|
||||
content:'\e063';
|
||||
}
|
||||
|
||||
.oi-external-link:before {
|
||||
content:'\e064';
|
||||
}
|
||||
|
||||
.oi-eye:before {
|
||||
content:'\e065';
|
||||
}
|
||||
|
||||
.oi-eyedropper:before {
|
||||
content:'\e066';
|
||||
}
|
||||
|
||||
.oi-file:before {
|
||||
content:'\e067';
|
||||
}
|
||||
|
||||
.oi-fire:before {
|
||||
content:'\e068';
|
||||
}
|
||||
|
||||
.oi-flag:before {
|
||||
content:'\e069';
|
||||
}
|
||||
|
||||
.oi-flash:before {
|
||||
content:'\e06a';
|
||||
}
|
||||
|
||||
.oi-folder:before {
|
||||
content:'\e06b';
|
||||
}
|
||||
|
||||
.oi-fork:before {
|
||||
content:'\e06c';
|
||||
}
|
||||
|
||||
.oi-fullscreen-enter:before {
|
||||
content:'\e06d';
|
||||
}
|
||||
|
||||
.oi-fullscreen-exit:before {
|
||||
content:'\e06e';
|
||||
}
|
||||
|
||||
.oi-globe:before {
|
||||
content:'\e06f';
|
||||
}
|
||||
|
||||
.oi-graph:before {
|
||||
content:'\e070';
|
||||
}
|
||||
|
||||
.oi-grid-four-up:before {
|
||||
content:'\e071';
|
||||
}
|
||||
|
||||
.oi-grid-three-up:before {
|
||||
content:'\e072';
|
||||
}
|
||||
|
||||
.oi-grid-two-up:before {
|
||||
content:'\e073';
|
||||
}
|
||||
|
||||
.oi-hard-drive:before {
|
||||
content:'\e074';
|
||||
}
|
||||
|
||||
.oi-header:before {
|
||||
content:'\e075';
|
||||
}
|
||||
|
||||
.oi-headphones:before {
|
||||
content:'\e076';
|
||||
}
|
||||
|
||||
.oi-heart:before {
|
||||
content:'\e077';
|
||||
}
|
||||
|
||||
.oi-home:before {
|
||||
content:'\e078';
|
||||
}
|
||||
|
||||
.oi-image:before {
|
||||
content:'\e079';
|
||||
}
|
||||
|
||||
.oi-inbox:before {
|
||||
content:'\e07a';
|
||||
}
|
||||
|
||||
.oi-infinity:before {
|
||||
content:'\e07b';
|
||||
}
|
||||
|
||||
.oi-info:before {
|
||||
content:'\e07c';
|
||||
}
|
||||
|
||||
.oi-italic:before {
|
||||
content:'\e07d';
|
||||
}
|
||||
|
||||
.oi-justify-center:before {
|
||||
content:'\e07e';
|
||||
}
|
||||
|
||||
.oi-justify-left:before {
|
||||
content:'\e07f';
|
||||
}
|
||||
|
||||
.oi-justify-right:before {
|
||||
content:'\e080';
|
||||
}
|
||||
|
||||
.oi-key:before {
|
||||
content:'\e081';
|
||||
}
|
||||
|
||||
.oi-laptop:before {
|
||||
content:'\e082';
|
||||
}
|
||||
|
||||
.oi-layers:before {
|
||||
content:'\e083';
|
||||
}
|
||||
|
||||
.oi-lightbulb:before {
|
||||
content:'\e084';
|
||||
}
|
||||
|
||||
.oi-link-broken:before {
|
||||
content:'\e085';
|
||||
}
|
||||
|
||||
.oi-link-intact:before {
|
||||
content:'\e086';
|
||||
}
|
||||
|
||||
.oi-list-rich:before {
|
||||
content:'\e087';
|
||||
}
|
||||
|
||||
.oi-list:before {
|
||||
content:'\e088';
|
||||
}
|
||||
|
||||
.oi-location:before {
|
||||
content:'\e089';
|
||||
}
|
||||
|
||||
.oi-lock-locked:before {
|
||||
content:'\e08a';
|
||||
}
|
||||
|
||||
.oi-lock-unlocked:before {
|
||||
content:'\e08b';
|
||||
}
|
||||
|
||||
.oi-loop-circular:before {
|
||||
content:'\e08c';
|
||||
}
|
||||
|
||||
.oi-loop-square:before {
|
||||
content:'\e08d';
|
||||
}
|
||||
|
||||
.oi-loop:before {
|
||||
content:'\e08e';
|
||||
}
|
||||
|
||||
.oi-magnifying-glass:before {
|
||||
content:'\e08f';
|
||||
}
|
||||
|
||||
.oi-map-marker:before {
|
||||
content:'\e090';
|
||||
}
|
||||
|
||||
.oi-map:before {
|
||||
content:'\e091';
|
||||
}
|
||||
|
||||
.oi-media-pause:before {
|
||||
content:'\e092';
|
||||
}
|
||||
|
||||
.oi-media-play:before {
|
||||
content:'\e093';
|
||||
}
|
||||
|
||||
.oi-media-record:before {
|
||||
content:'\e094';
|
||||
}
|
||||
|
||||
.oi-media-skip-backward:before {
|
||||
content:'\e095';
|
||||
}
|
||||
|
||||
.oi-media-skip-forward:before {
|
||||
content:'\e096';
|
||||
}
|
||||
|
||||
.oi-media-step-backward:before {
|
||||
content:'\e097';
|
||||
}
|
||||
|
||||
.oi-media-step-forward:before {
|
||||
content:'\e098';
|
||||
}
|
||||
|
||||
.oi-media-stop:before {
|
||||
content:'\e099';
|
||||
}
|
||||
|
||||
.oi-medical-cross:before {
|
||||
content:'\e09a';
|
||||
}
|
||||
|
||||
.oi-menu:before {
|
||||
content:'\e09b';
|
||||
}
|
||||
|
||||
.oi-microphone:before {
|
||||
content:'\e09c';
|
||||
}
|
||||
|
||||
.oi-minus:before {
|
||||
content:'\e09d';
|
||||
}
|
||||
|
||||
.oi-monitor:before {
|
||||
content:'\e09e';
|
||||
}
|
||||
|
||||
.oi-moon:before {
|
||||
content:'\e09f';
|
||||
}
|
||||
|
||||
.oi-move:before {
|
||||
content:'\e0a0';
|
||||
}
|
||||
|
||||
.oi-musical-note:before {
|
||||
content:'\e0a1';
|
||||
}
|
||||
|
||||
.oi-paperclip:before {
|
||||
content:'\e0a2';
|
||||
}
|
||||
|
||||
.oi-pencil:before {
|
||||
content:'\e0a3';
|
||||
}
|
||||
|
||||
.oi-people:before {
|
||||
content:'\e0a4';
|
||||
}
|
||||
|
||||
.oi-person:before {
|
||||
content:'\e0a5';
|
||||
}
|
||||
|
||||
.oi-phone:before {
|
||||
content:'\e0a6';
|
||||
}
|
||||
|
||||
.oi-pie-chart:before {
|
||||
content:'\e0a7';
|
||||
}
|
||||
|
||||
.oi-pin:before {
|
||||
content:'\e0a8';
|
||||
}
|
||||
|
||||
.oi-play-circle:before {
|
||||
content:'\e0a9';
|
||||
}
|
||||
|
||||
.oi-plus:before {
|
||||
content:'\e0aa';
|
||||
}
|
||||
|
||||
.oi-power-standby:before {
|
||||
content:'\e0ab';
|
||||
}
|
||||
|
||||
.oi-print:before {
|
||||
content:'\e0ac';
|
||||
}
|
||||
|
||||
.oi-project:before {
|
||||
content:'\e0ad';
|
||||
}
|
||||
|
||||
.oi-pulse:before {
|
||||
content:'\e0ae';
|
||||
}
|
||||
|
||||
.oi-puzzle-piece:before {
|
||||
content:'\e0af';
|
||||
}
|
||||
|
||||
.oi-question-mark:before {
|
||||
content:'\e0b0';
|
||||
}
|
||||
|
||||
.oi-rain:before {
|
||||
content:'\e0b1';
|
||||
}
|
||||
|
||||
.oi-random:before {
|
||||
content:'\e0b2';
|
||||
}
|
||||
|
||||
.oi-reload:before {
|
||||
content:'\e0b3';
|
||||
}
|
||||
|
||||
.oi-resize-both:before {
|
||||
content:'\e0b4';
|
||||
}
|
||||
|
||||
.oi-resize-height:before {
|
||||
content:'\e0b5';
|
||||
}
|
||||
|
||||
.oi-resize-width:before {
|
||||
content:'\e0b6';
|
||||
}
|
||||
|
||||
.oi-rss-alt:before {
|
||||
content:'\e0b7';
|
||||
}
|
||||
|
||||
.oi-rss:before {
|
||||
content:'\e0b8';
|
||||
}
|
||||
|
||||
.oi-script:before {
|
||||
content:'\e0b9';
|
||||
}
|
||||
|
||||
.oi-share-boxed:before {
|
||||
content:'\e0ba';
|
||||
}
|
||||
|
||||
.oi-share:before {
|
||||
content:'\e0bb';
|
||||
}
|
||||
|
||||
.oi-shield:before {
|
||||
content:'\e0bc';
|
||||
}
|
||||
|
||||
.oi-signal:before {
|
||||
content:'\e0bd';
|
||||
}
|
||||
|
||||
.oi-signpost:before {
|
||||
content:'\e0be';
|
||||
}
|
||||
|
||||
.oi-sort-ascending:before {
|
||||
content:'\e0bf';
|
||||
}
|
||||
|
||||
.oi-sort-descending:before {
|
||||
content:'\e0c0';
|
||||
}
|
||||
|
||||
.oi-spreadsheet:before {
|
||||
content:'\e0c1';
|
||||
}
|
||||
|
||||
.oi-star:before {
|
||||
content:'\e0c2';
|
||||
}
|
||||
|
||||
.oi-sun:before {
|
||||
content:'\e0c3';
|
||||
}
|
||||
|
||||
.oi-tablet:before {
|
||||
content:'\e0c4';
|
||||
}
|
||||
|
||||
.oi-tag:before {
|
||||
content:'\e0c5';
|
||||
}
|
||||
|
||||
.oi-tags:before {
|
||||
content:'\e0c6';
|
||||
}
|
||||
|
||||
.oi-target:before {
|
||||
content:'\e0c7';
|
||||
}
|
||||
|
||||
.oi-task:before {
|
||||
content:'\e0c8';
|
||||
}
|
||||
|
||||
.oi-terminal:before {
|
||||
content:'\e0c9';
|
||||
}
|
||||
|
||||
.oi-text:before {
|
||||
content:'\e0ca';
|
||||
}
|
||||
|
||||
.oi-thumb-down:before {
|
||||
content:'\e0cb';
|
||||
}
|
||||
|
||||
.oi-thumb-up:before {
|
||||
content:'\e0cc';
|
||||
}
|
||||
|
||||
.oi-timer:before {
|
||||
content:'\e0cd';
|
||||
}
|
||||
|
||||
.oi-transfer:before {
|
||||
content:'\e0ce';
|
||||
}
|
||||
|
||||
.oi-trash:before {
|
||||
content:'\e0cf';
|
||||
}
|
||||
|
||||
.oi-underline:before {
|
||||
content:'\e0d0';
|
||||
}
|
||||
|
||||
.oi-vertical-align-bottom:before {
|
||||
content:'\e0d1';
|
||||
}
|
||||
|
||||
.oi-vertical-align-center:before {
|
||||
content:'\e0d2';
|
||||
}
|
||||
|
||||
.oi-vertical-align-top:before {
|
||||
content:'\e0d3';
|
||||
}
|
||||
|
||||
.oi-video:before {
|
||||
content:'\e0d4';
|
||||
}
|
||||
|
||||
.oi-volume-high:before {
|
||||
content:'\e0d5';
|
||||
}
|
||||
|
||||
.oi-volume-low:before {
|
||||
content:'\e0d6';
|
||||
}
|
||||
|
||||
.oi-volume-off:before {
|
||||
content:'\e0d7';
|
||||
}
|
||||
|
||||
.oi-warning:before {
|
||||
content:'\e0d8';
|
||||
}
|
||||
|
||||
.oi-wifi:before {
|
||||
content:'\e0d9';
|
||||
}
|
||||
|
||||
.oi-wrench:before {
|
||||
content:'\e0da';
|
||||
}
|
||||
|
||||
.oi-x:before {
|
||||
content:'\e0db';
|
||||
}
|
||||
|
||||
.oi-yen:before {
|
||||
content:'\e0dc';
|
||||
}
|
||||
|
||||
.oi-zoom-in:before {
|
||||
content:'\e0dd';
|
||||
}
|
||||
|
||||
.oi-zoom-out:before {
|
||||
content:'\e0de';
|
||||
}
|
960
public/assets/css/open-iconic-bootstrap.less
Normal file
960
public/assets/css/open-iconic-bootstrap.less
Normal file
|
@ -0,0 +1,960 @@
|
|||
/* Bootstrap */
|
||||
|
||||
/* Override Bootstrap default variable */
|
||||
//@icon-font-path: "../fonts/";
|
||||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: ~"url('@{icon-font-path}open-iconic.eot')";
|
||||
src: ~"url('@{icon-font-path}open-iconic.eot?#iconic-sm') format('embedded-opentype')",
|
||||
~"url('@{icon-font-path}open-iconic.woff') format('woff')",
|
||||
~"url('@{icon-font-path}open-iconic.ttf') format('truetype')",
|
||||
~"url('@{icon-font-path}open-iconic.svg#iconic-sm') format('svg')";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
// Catchall baseclass
|
||||
.oi {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
font-family: 'Icons';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
&:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
&.oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&.oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
&.oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
&.oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.oi-account-login:before {
|
||||
content:"\e000";
|
||||
}
|
||||
|
||||
.oi-account-logout:before {
|
||||
content:"\e001";
|
||||
}
|
||||
|
||||
.oi-action-redo:before {
|
||||
content:"\e002";
|
||||
}
|
||||
|
||||
.oi-action-undo:before {
|
||||
content:"\e003";
|
||||
}
|
||||
|
||||
.oi-align-center:before {
|
||||
content:"\e004";
|
||||
}
|
||||
|
||||
.oi-align-left:before {
|
||||
content:"\e005";
|
||||
}
|
||||
|
||||
.oi-align-right:before {
|
||||
content:"\e006";
|
||||
}
|
||||
|
||||
.oi-aperture:before {
|
||||
content:"\e007";
|
||||
}
|
||||
|
||||
.oi-arrow-bottom:before {
|
||||
content:"\e008";
|
||||
}
|
||||
|
||||
.oi-arrow-circle-bottom:before {
|
||||
content:"\e009";
|
||||
}
|
||||
|
||||
.oi-arrow-circle-left:before {
|
||||
content:"\e00a";
|
||||
}
|
||||
|
||||
.oi-arrow-circle-right:before {
|
||||
content:"\e00b";
|
||||
}
|
||||
|
||||
.oi-arrow-circle-top:before {
|
||||
content:"\e00c";
|
||||
}
|
||||
|
||||
.oi-arrow-left:before {
|
||||
content:"\e00d";
|
||||
}
|
||||
|
||||
.oi-arrow-right:before {
|
||||
content:"\e00e";
|
||||
}
|
||||
|
||||
.oi-arrow-thick-bottom:before {
|
||||
content:"\e00f";
|
||||
}
|
||||
|
||||
.oi-arrow-thick-left:before {
|
||||
content:"\e010";
|
||||
}
|
||||
|
||||
.oi-arrow-thick-right:before {
|
||||
content:"\e011";
|
||||
}
|
||||
|
||||
.oi-arrow-thick-top:before {
|
||||
content:"\e012";
|
||||
}
|
||||
|
||||
.oi-arrow-top:before {
|
||||
content:"\e013";
|
||||
}
|
||||
|
||||
.oi-audio-spectrum:before {
|
||||
content:"\e014";
|
||||
}
|
||||
|
||||
.oi-audio:before {
|
||||
content:"\e015";
|
||||
}
|
||||
|
||||
.oi-badge:before {
|
||||
content:"\e016";
|
||||
}
|
||||
|
||||
.oi-ban:before {
|
||||
content:"\e017";
|
||||
}
|
||||
|
||||
.oi-bar-chart:before {
|
||||
content:"\e018";
|
||||
}
|
||||
|
||||
.oi-basket:before {
|
||||
content:"\e019";
|
||||
}
|
||||
|
||||
.oi-battery-empty:before {
|
||||
content:"\e01a";
|
||||
}
|
||||
|
||||
.oi-battery-full:before {
|
||||
content:"\e01b";
|
||||
}
|
||||
|
||||
.oi-beaker:before {
|
||||
content:"\e01c";
|
||||
}
|
||||
|
||||
.oi-bell:before {
|
||||
content:"\e01d";
|
||||
}
|
||||
|
||||
.oi-bluetooth:before {
|
||||
content:"\e01e";
|
||||
}
|
||||
|
||||
.oi-bold:before {
|
||||
content:"\e01f";
|
||||
}
|
||||
|
||||
.oi-bolt:before {
|
||||
content:"\e020";
|
||||
}
|
||||
|
||||
.oi-book:before {
|
||||
content:"\e021";
|
||||
}
|
||||
|
||||
.oi-bookmark:before {
|
||||
content:"\e022";
|
||||
}
|
||||
|
||||
.oi-box:before {
|
||||
content:"\e023";
|
||||
}
|
||||
|
||||
.oi-briefcase:before {
|
||||
content:"\e024";
|
||||
}
|
||||
|
||||
.oi-british-pound:before {
|
||||
content:"\e025";
|
||||
}
|
||||
|
||||
.oi-browser:before {
|
||||
content:"\e026";
|
||||
}
|
||||
|
||||
.oi-brush:before {
|
||||
content:"\e027";
|
||||
}
|
||||
|
||||
.oi-bug:before {
|
||||
content:"\e028";
|
||||
}
|
||||
|
||||
.oi-bullhorn:before {
|
||||
content:"\e029";
|
||||
}
|
||||
|
||||
.oi-calculator:before {
|
||||
content:"\e02a";
|
||||
}
|
||||
|
||||
.oi-calendar:before {
|
||||
content:"\e02b";
|
||||
}
|
||||
|
||||
.oi-camera-slr:before {
|
||||
content:"\e02c";
|
||||
}
|
||||
|
||||
.oi-caret-bottom:before {
|
||||
content:"\e02d";
|
||||
}
|
||||
|
||||
.oi-caret-left:before {
|
||||
content:"\e02e";
|
||||
}
|
||||
|
||||
.oi-caret-right:before {
|
||||
content:"\e02f";
|
||||
}
|
||||
|
||||
.oi-caret-top:before {
|
||||
content:"\e030";
|
||||
}
|
||||
|
||||
.oi-cart:before {
|
||||
content:"\e031";
|
||||
}
|
||||
|
||||
.oi-chat:before {
|
||||
content:"\e032";
|
||||
}
|
||||
|
||||
.oi-check:before {
|
||||
content:"\e033";
|
||||
}
|
||||
|
||||
.oi-chevron-bottom:before {
|
||||
content:"\e034";
|
||||
}
|
||||
|
||||
.oi-chevron-left:before {
|
||||
content:"\e035";
|
||||
}
|
||||
|
||||
.oi-chevron-right:before {
|
||||
content:"\e036";
|
||||
}
|
||||
|
||||
.oi-chevron-top:before {
|
||||
content:"\e037";
|
||||
}
|
||||
|
||||
.oi-circle-check:before {
|
||||
content:"\e038";
|
||||
}
|
||||
|
||||
.oi-circle-x:before {
|
||||
content:"\e039";
|
||||
}
|
||||
|
||||
.oi-clipboard:before {
|
||||
content:"\e03a";
|
||||
}
|
||||
|
||||
.oi-clock:before {
|
||||
content:"\e03b";
|
||||
}
|
||||
|
||||
.oi-cloud-download:before {
|
||||
content:"\e03c";
|
||||
}
|
||||
|
||||
.oi-cloud-upload:before {
|
||||
content:"\e03d";
|
||||
}
|
||||
|
||||
.oi-cloud:before {
|
||||
content:"\e03e";
|
||||
}
|
||||
|
||||
.oi-cloudy:before {
|
||||
content:"\e03f";
|
||||
}
|
||||
|
||||
.oi-code:before {
|
||||
content:"\e040";
|
||||
}
|
||||
|
||||
.oi-cog:before {
|
||||
content:"\e041";
|
||||
}
|
||||
|
||||
.oi-collapse-down:before {
|
||||
content:"\e042";
|
||||
}
|
||||
|
||||
.oi-collapse-left:before {
|
||||
content:"\e043";
|
||||
}
|
||||
|
||||
.oi-collapse-right:before {
|
||||
content:"\e044";
|
||||
}
|
||||
|
||||
.oi-collapse-up:before {
|
||||
content:"\e045";
|
||||
}
|
||||
|
||||
.oi-command:before {
|
||||
content:"\e046";
|
||||
}
|
||||
|
||||
.oi-comment-square:before {
|
||||
content:"\e047";
|
||||
}
|
||||
|
||||
.oi-compass:before {
|
||||
content:"\e048";
|
||||
}
|
||||
|
||||
.oi-contrast:before {
|
||||
content:"\e049";
|
||||
}
|
||||
|
||||
.oi-copywriting:before {
|
||||
content:"\e04a";
|
||||
}
|
||||
|
||||
.oi-credit-card:before {
|
||||
content:"\e04b";
|
||||
}
|
||||
|
||||
.oi-crop:before {
|
||||
content:"\e04c";
|
||||
}
|
||||
|
||||
.oi-dashboard:before {
|
||||
content:"\e04d";
|
||||
}
|
||||
|
||||
.oi-data-transfer-download:before {
|
||||
content:"\e04e";
|
||||
}
|
||||
|
||||
.oi-data-transfer-upload:before {
|
||||
content:"\e04f";
|
||||
}
|
||||
|
||||
.oi-delete:before {
|
||||
content:"\e050";
|
||||
}
|
||||
|
||||
.oi-dial:before {
|
||||
content:"\e051";
|
||||
}
|
||||
|
||||
.oi-document:before {
|
||||
content:"\e052";
|
||||
}
|
||||
|
||||
.oi-dollar:before {
|
||||
content:"\e053";
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-left:before {
|
||||
content:"\e054";
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-right:before {
|
||||
content:"\e055";
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-left:before {
|
||||
content:"\e056";
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-right:before {
|
||||
content:"\e057";
|
||||
}
|
||||
|
||||
.oi-droplet:before {
|
||||
content:"\e058";
|
||||
}
|
||||
|
||||
.oi-eject:before {
|
||||
content:"\e059";
|
||||
}
|
||||
|
||||
.oi-elevator:before {
|
||||
content:"\e05a";
|
||||
}
|
||||
|
||||
.oi-ellipses:before {
|
||||
content:"\e05b";
|
||||
}
|
||||
|
||||
.oi-envelope-closed:before {
|
||||
content:"\e05c";
|
||||
}
|
||||
|
||||
.oi-envelope-open:before {
|
||||
content:"\e05d";
|
||||
}
|
||||
|
||||
.oi-euro:before {
|
||||
content:"\e05e";
|
||||
}
|
||||
|
||||
.oi-excerpt:before {
|
||||
content:"\e05f";
|
||||
}
|
||||
|
||||
.oi-expand-down:before {
|
||||
content:"\e060";
|
||||
}
|
||||
|
||||
.oi-expand-left:before {
|
||||
content:"\e061";
|
||||
}
|
||||
|
||||
.oi-expand-right:before {
|
||||
content:"\e062";
|
||||
}
|
||||
|
||||
.oi-expand-up:before {
|
||||
content:"\e063";
|
||||
}
|
||||
|
||||
.oi-external-link:before {
|
||||
content:"\e064";
|
||||
}
|
||||
|
||||
.oi-eye:before {
|
||||
content:"\e065";
|
||||
}
|
||||
|
||||
.oi-eyedropper:before {
|
||||
content:"\e066";
|
||||
}
|
||||
|
||||
.oi-file:before {
|
||||
content:"\e067";
|
||||
}
|
||||
|
||||
.oi-fire:before {
|
||||
content:"\e068";
|
||||
}
|
||||
|
||||
.oi-flag:before {
|
||||
content:"\e069";
|
||||
}
|
||||
|
||||
.oi-flash:before {
|
||||
content:"\e06a";
|
||||
}
|
||||
|
||||
.oi-folder:before {
|
||||
content:"\e06b";
|
||||
}
|
||||
|
||||
.oi-fork:before {
|
||||
content:"\e06c";
|
||||
}
|
||||
|
||||
.oi-fullscreen-enter:before {
|
||||
content:"\e06d";
|
||||
}
|
||||
|
||||
.oi-fullscreen-exit:before {
|
||||
content:"\e06e";
|
||||
}
|
||||
|
||||
.oi-globe:before {
|
||||
content:"\e06f";
|
||||
}
|
||||
|
||||
.oi-graph:before {
|
||||
content:"\e070";
|
||||
}
|
||||
|
||||
.oi-grid-four-up:before {
|
||||
content:"\e071";
|
||||
}
|
||||
|
||||
.oi-grid-three-up:before {
|
||||
content:"\e072";
|
||||
}
|
||||
|
||||
.oi-grid-two-up:before {
|
||||
content:"\e073";
|
||||
}
|
||||
|
||||
.oi-hard-drive:before {
|
||||
content:"\e074";
|
||||
}
|
||||
|
||||
.oi-header:before {
|
||||
content:"\e075";
|
||||
}
|
||||
|
||||
.oi-headphones:before {
|
||||
content:"\e076";
|
||||
}
|
||||
|
||||
.oi-heart:before {
|
||||
content:"\e077";
|
||||
}
|
||||
|
||||
.oi-home:before {
|
||||
content:"\e078";
|
||||
}
|
||||
|
||||
.oi-image:before {
|
||||
content:"\e079";
|
||||
}
|
||||
|
||||
.oi-inbox:before {
|
||||
content:"\e07a";
|
||||
}
|
||||
|
||||
.oi-infinity:before {
|
||||
content:"\e07b";
|
||||
}
|
||||
|
||||
.oi-info:before {
|
||||
content:"\e07c";
|
||||
}
|
||||
|
||||
.oi-italic:before {
|
||||
content:"\e07d";
|
||||
}
|
||||
|
||||
.oi-justify-center:before {
|
||||
content:"\e07e";
|
||||
}
|
||||
|
||||
.oi-justify-left:before {
|
||||
content:"\e07f";
|
||||
}
|
||||
|
||||
.oi-justify-right:before {
|
||||
content:"\e080";
|
||||
}
|
||||
|
||||
.oi-key:before {
|
||||
content:"\e081";
|
||||
}
|
||||
|
||||
.oi-laptop:before {
|
||||
content:"\e082";
|
||||
}
|
||||
|
||||
.oi-layers:before {
|
||||
content:"\e083";
|
||||
}
|
||||
|
||||
.oi-lightbulb:before {
|
||||
content:"\e084";
|
||||
}
|
||||
|
||||
.oi-link-broken:before {
|
||||
content:"\e085";
|
||||
}
|
||||
|
||||
.oi-link-intact:before {
|
||||
content:"\e086";
|
||||
}
|
||||
|
||||
.oi-list-rich:before {
|
||||
content:"\e087";
|
||||
}
|
||||
|
||||
.oi-list:before {
|
||||
content:"\e088";
|
||||
}
|
||||
|
||||
.oi-location:before {
|
||||
content:"\e089";
|
||||
}
|
||||
|
||||
.oi-lock-locked:before {
|
||||
content:"\e08a";
|
||||
}
|
||||
|
||||
.oi-lock-unlocked:before {
|
||||
content:"\e08b";
|
||||
}
|
||||
|
||||
.oi-loop-circular:before {
|
||||
content:"\e08c";
|
||||
}
|
||||
|
||||
.oi-loop-square:before {
|
||||
content:"\e08d";
|
||||
}
|
||||
|
||||
.oi-loop:before {
|
||||
content:"\e08e";
|
||||
}
|
||||
|
||||
.oi-magnifying-glass:before {
|
||||
content:"\e08f";
|
||||
}
|
||||
|
||||
.oi-map-marker:before {
|
||||
content:"\e090";
|
||||
}
|
||||
|
||||
.oi-map:before {
|
||||
content:"\e091";
|
||||
}
|
||||
|
||||
.oi-media-pause:before {
|
||||
content:"\e092";
|
||||
}
|
||||
|
||||
.oi-media-play:before {
|
||||
content:"\e093";
|
||||
}
|
||||
|
||||
.oi-media-record:before {
|
||||
content:"\e094";
|
||||
}
|
||||
|
||||
.oi-media-skip-backward:before {
|
||||
content:"\e095";
|
||||
}
|
||||
|
||||
.oi-media-skip-forward:before {
|
||||
content:"\e096";
|
||||
}
|
||||
|
||||
.oi-media-step-backward:before {
|
||||
content:"\e097";
|
||||
}
|
||||
|
||||
.oi-media-step-forward:before {
|
||||
content:"\e098";
|
||||
}
|
||||
|
||||
.oi-media-stop:before {
|
||||
content:"\e099";
|
||||
}
|
||||
|
||||
.oi-medical-cross:before {
|
||||
content:"\e09a";
|
||||
}
|
||||
|
||||
.oi-menu:before {
|
||||
content:"\e09b";
|
||||
}
|
||||
|
||||
.oi-microphone:before {
|
||||
content:"\e09c";
|
||||
}
|
||||
|
||||
.oi-minus:before {
|
||||
content:"\e09d";
|
||||
}
|
||||
|
||||
.oi-monitor:before {
|
||||
content:"\e09e";
|
||||
}
|
||||
|
||||
.oi-moon:before {
|
||||
content:"\e09f";
|
||||
}
|
||||
|
||||
.oi-move:before {
|
||||
content:"\e0a0";
|
||||
}
|
||||
|
||||
.oi-musical-note:before {
|
||||
content:"\e0a1";
|
||||
}
|
||||
|
||||
.oi-paperclip:before {
|
||||
content:"\e0a2";
|
||||
}
|
||||
|
||||
.oi-pencil:before {
|
||||
content:"\e0a3";
|
||||
}
|
||||
|
||||
.oi-people:before {
|
||||
content:"\e0a4";
|
||||
}
|
||||
|
||||
.oi-person:before {
|
||||
content:"\e0a5";
|
||||
}
|
||||
|
||||
.oi-phone:before {
|
||||
content:"\e0a6";
|
||||
}
|
||||
|
||||
.oi-pie-chart:before {
|
||||
content:"\e0a7";
|
||||
}
|
||||
|
||||
.oi-pin:before {
|
||||
content:"\e0a8";
|
||||
}
|
||||
|
||||
.oi-play-circle:before {
|
||||
content:"\e0a9";
|
||||
}
|
||||
|
||||
.oi-plus:before {
|
||||
content:"\e0aa";
|
||||
}
|
||||
|
||||
.oi-power-standby:before {
|
||||
content:"\e0ab";
|
||||
}
|
||||
|
||||
.oi-print:before {
|
||||
content:"\e0ac";
|
||||
}
|
||||
|
||||
.oi-project:before {
|
||||
content:"\e0ad";
|
||||
}
|
||||
|
||||
.oi-pulse:before {
|
||||
content:"\e0ae";
|
||||
}
|
||||
|
||||
.oi-puzzle-piece:before {
|
||||
content:"\e0af";
|
||||
}
|
||||
|
||||
.oi-question-mark:before {
|
||||
content:"\e0b0";
|
||||
}
|
||||
|
||||
.oi-rain:before {
|
||||
content:"\e0b1";
|
||||
}
|
||||
|
||||
.oi-random:before {
|
||||
content:"\e0b2";
|
||||
}
|
||||
|
||||
.oi-reload:before {
|
||||
content:"\e0b3";
|
||||
}
|
||||
|
||||
.oi-resize-both:before {
|
||||
content:"\e0b4";
|
||||
}
|
||||
|
||||
.oi-resize-height:before {
|
||||
content:"\e0b5";
|
||||
}
|
||||
|
||||
.oi-resize-width:before {
|
||||
content:"\e0b6";
|
||||
}
|
||||
|
||||
.oi-rss-alt:before {
|
||||
content:"\e0b7";
|
||||
}
|
||||
|
||||
.oi-rss:before {
|
||||
content:"\e0b8";
|
||||
}
|
||||
|
||||
.oi-script:before {
|
||||
content:"\e0b9";
|
||||
}
|
||||
|
||||
.oi-share-boxed:before {
|
||||
content:"\e0ba";
|
||||
}
|
||||
|
||||
.oi-share:before {
|
||||
content:"\e0bb";
|
||||
}
|
||||
|
||||
.oi-shield:before {
|
||||
content:"\e0bc";
|
||||
}
|
||||
|
||||
.oi-signal:before {
|
||||
content:"\e0bd";
|
||||
}
|
||||
|
||||
.oi-signpost:before {
|
||||
content:"\e0be";
|
||||
}
|
||||
|
||||
.oi-sort-ascending:before {
|
||||
content:"\e0bf";
|
||||
}
|
||||
|
||||
.oi-sort-descending:before {
|
||||
content:"\e0c0";
|
||||
}
|
||||
|
||||
.oi-spreadsheet:before {
|
||||
content:"\e0c1";
|
||||
}
|
||||
|
||||
.oi-star:before {
|
||||
content:"\e0c2";
|
||||
}
|
||||
|
||||
.oi-sun:before {
|
||||
content:"\e0c3";
|
||||
}
|
||||
|
||||
.oi-tablet:before {
|
||||
content:"\e0c4";
|
||||
}
|
||||
|
||||
.oi-tag:before {
|
||||
content:"\e0c5";
|
||||
}
|
||||
|
||||
.oi-tags:before {
|
||||
content:"\e0c6";
|
||||
}
|
||||
|
||||
.oi-target:before {
|
||||
content:"\e0c7";
|
||||
}
|
||||
|
||||
.oi-task:before {
|
||||
content:"\e0c8";
|
||||
}
|
||||
|
||||
.oi-terminal:before {
|
||||
content:"\e0c9";
|
||||
}
|
||||
|
||||
.oi-text:before {
|
||||
content:"\e0ca";
|
||||
}
|
||||
|
||||
.oi-thumb-down:before {
|
||||
content:"\e0cb";
|
||||
}
|
||||
|
||||
.oi-thumb-up:before {
|
||||
content:"\e0cc";
|
||||
}
|
||||
|
||||
.oi-timer:before {
|
||||
content:"\e0cd";
|
||||
}
|
||||
|
||||
.oi-transfer:before {
|
||||
content:"\e0ce";
|
||||
}
|
||||
|
||||
.oi-trash:before {
|
||||
content:"\e0cf";
|
||||
}
|
||||
|
||||
.oi-underline:before {
|
||||
content:"\e0d0";
|
||||
}
|
||||
|
||||
.oi-vertical-align-bottom:before {
|
||||
content:"\e0d1";
|
||||
}
|
||||
|
||||
.oi-vertical-align-center:before {
|
||||
content:"\e0d2";
|
||||
}
|
||||
|
||||
.oi-vertical-align-top:before {
|
||||
content:"\e0d3";
|
||||
}
|
||||
|
||||
.oi-video:before {
|
||||
content:"\e0d4";
|
||||
}
|
||||
|
||||
.oi-volume-high:before {
|
||||
content:"\e0d5";
|
||||
}
|
||||
|
||||
.oi-volume-low:before {
|
||||
content:"\e0d6";
|
||||
}
|
||||
|
||||
.oi-volume-off:before {
|
||||
content:"\e0d7";
|
||||
}
|
||||
|
||||
.oi-warning:before {
|
||||
content:"\e0d8";
|
||||
}
|
||||
|
||||
.oi-wifi:before {
|
||||
content:"\e0d9";
|
||||
}
|
||||
|
||||
.oi-wrench:before {
|
||||
content:"\e0da";
|
||||
}
|
||||
|
||||
.oi-x:before {
|
||||
content:"\e0db";
|
||||
}
|
||||
|
||||
.oi-yen:before {
|
||||
content:"\e0dc";
|
||||
}
|
||||
|
||||
.oi-zoom-in:before {
|
||||
content:"\e0dd";
|
||||
}
|
||||
|
||||
.oi-zoom-out:before {
|
||||
content:"\e0de";
|
||||
}
|
||||
|
1
public/assets/css/open-iconic-bootstrap.min.css
vendored
Normal file
1
public/assets/css/open-iconic-bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
958
public/assets/css/open-iconic-bootstrap.scss
Normal file
958
public/assets/css/open-iconic-bootstrap.scss
Normal file
|
@ -0,0 +1,958 @@
|
|||
/* Bootstrap */
|
||||
|
||||
/* Override Bootstrap default variable */
|
||||
$icon-font-path: '../fonts/' !default;
|
||||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: url('#{$icon-font-path}open-iconic.eot');
|
||||
src: url('#{$icon-font-path}open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('#{$icon-font-path}open-iconic.woff') format('woff'), url('#{$icon-font-path}open-iconic.ttf') format('truetype'), url('#{$icon-font-path}open-iconic.svg#iconic-sm') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
// Catchall baseclass
|
||||
.oi {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
font-family: 'Icons';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
|
||||
&:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
&.oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&.oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
&.oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
&.oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.oi-account-login:before {
|
||||
content:'\e000';
|
||||
}
|
||||
|
||||
.oi-account-logout:before {
|
||||
content:'\e001';
|
||||
}
|
||||
|
||||
.oi-action-redo:before {
|
||||
content:'\e002';
|
||||
}
|
||||
|
||||
.oi-action-undo:before {
|
||||
content:'\e003';
|
||||
}
|
||||
|
||||
.oi-align-center:before {
|
||||
content:'\e004';
|
||||
}
|
||||
|
||||
.oi-align-left:before {
|
||||
content:'\e005';
|
||||
}
|
||||
|
||||
.oi-align-right:before {
|
||||
content:'\e006';
|
||||
}
|
||||
|
||||
.oi-aperture:before {
|
||||
content:'\e007';
|
||||
}
|
||||
|
||||
.oi-arrow-bottom:before {
|
||||
content:'\e008';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-bottom:before {
|
||||
content:'\e009';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-left:before {
|
||||
content:'\e00a';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-right:before {
|
||||
content:'\e00b';
|
||||
}
|
||||
|
||||
.oi-arrow-circle-top:before {
|
||||
content:'\e00c';
|
||||
}
|
||||
|
||||
.oi-arrow-left:before {
|
||||
content:'\e00d';
|
||||
}
|
||||
|
||||
.oi-arrow-right:before {
|
||||
content:'\e00e';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-bottom:before {
|
||||
content:'\e00f';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-left:before {
|
||||
content:'\e010';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-right:before {
|
||||
content:'\e011';
|
||||
}
|
||||
|
||||
.oi-arrow-thick-top:before {
|
||||
content:'\e012';
|
||||
}
|
||||
|
||||
.oi-arrow-top:before {
|
||||
content:'\e013';
|
||||
}
|
||||
|
||||
.oi-audio-spectrum:before {
|
||||
content:'\e014';
|
||||
}
|
||||
|
||||
.oi-audio:before {
|
||||
content:'\e015';
|
||||
}
|
||||
|
||||
.oi-badge:before {
|
||||
content:'\e016';
|
||||
}
|
||||
|
||||
.oi-ban:before {
|
||||
content:'\e017';
|
||||
}
|
||||
|
||||
.oi-bar-chart:before {
|
||||
content:'\e018';
|
||||
}
|
||||
|
||||
.oi-basket:before {
|
||||
content:'\e019';
|
||||
}
|
||||
|
||||
.oi-battery-empty:before {
|
||||
content:'\e01a';
|
||||
}
|
||||
|
||||
.oi-battery-full:before {
|
||||
content:'\e01b';
|
||||
}
|
||||
|
||||
.oi-beaker:before {
|
||||
content:'\e01c';
|
||||
}
|
||||
|
||||
.oi-bell:before {
|
||||
content:'\e01d';
|
||||
}
|
||||
|
||||
.oi-bluetooth:before {
|
||||
content:'\e01e';
|
||||
}
|
||||
|
||||
.oi-bold:before {
|
||||
content:'\e01f';
|
||||
}
|
||||
|
||||
.oi-bolt:before {
|
||||
content:'\e020';
|
||||
}
|
||||
|
||||
.oi-book:before {
|
||||
content:'\e021';
|
||||
}
|
||||
|
||||
.oi-bookmark:before {
|
||||
content:'\e022';
|
||||
}
|
||||
|
||||
.oi-box:before {
|
||||
content:'\e023';
|
||||
}
|
||||
|
||||
.oi-briefcase:before {
|
||||
content:'\e024';
|
||||
}
|
||||
|
||||
.oi-british-pound:before {
|
||||
content:'\e025';
|
||||
}
|
||||
|
||||
.oi-browser:before {
|
||||
content:'\e026';
|
||||
}
|
||||
|
||||
.oi-brush:before {
|
||||
content:'\e027';
|
||||
}
|
||||
|
||||
.oi-bug:before {
|
||||
content:'\e028';
|
||||
}
|
||||
|
||||
.oi-bullhorn:before {
|
||||
content:'\e029';
|
||||
}
|
||||
|
||||
.oi-calculator:before {
|
||||
content:'\e02a';
|
||||
}
|
||||
|
||||
.oi-calendar:before {
|
||||
content:'\e02b';
|
||||
}
|
||||
|
||||
.oi-camera-slr:before {
|
||||
content:'\e02c';
|
||||
}
|
||||
|
||||
.oi-caret-bottom:before {
|
||||
content:'\e02d';
|
||||
}
|
||||
|
||||
.oi-caret-left:before {
|
||||
content:'\e02e';
|
||||
}
|
||||
|
||||
.oi-caret-right:before {
|
||||
content:'\e02f';
|
||||
}
|
||||
|
||||
.oi-caret-top:before {
|
||||
content:'\e030';
|
||||
}
|
||||
|
||||
.oi-cart:before {
|
||||
content:'\e031';
|
||||
}
|
||||
|
||||
.oi-chat:before {
|
||||
content:'\e032';
|
||||
}
|
||||
|
||||
.oi-check:before {
|
||||
content:'\e033';
|
||||
}
|
||||
|
||||
.oi-chevron-bottom:before {
|
||||
content:'\e034';
|
||||
}
|
||||
|
||||
.oi-chevron-left:before {
|
||||
content:'\e035';
|
||||
}
|
||||
|
||||
.oi-chevron-right:before {
|
||||
content:'\e036';
|
||||
}
|
||||
|
||||
.oi-chevron-top:before {
|
||||
content:'\e037';
|
||||
}
|
||||
|
||||
.oi-circle-check:before {
|
||||
content:'\e038';
|
||||
}
|
||||
|
||||
.oi-circle-x:before {
|
||||
content:'\e039';
|
||||
}
|
||||
|
||||
.oi-clipboard:before {
|
||||
content:'\e03a';
|
||||
}
|
||||
|
||||
.oi-clock:before {
|
||||
content:'\e03b';
|
||||
}
|
||||
|
||||
.oi-cloud-download:before {
|
||||
content:'\e03c';
|
||||
}
|
||||
|
||||
.oi-cloud-upload:before {
|
||||
content:'\e03d';
|
||||
}
|
||||
|
||||
.oi-cloud:before {
|
||||
content:'\e03e';
|
||||
}
|
||||
|
||||
.oi-cloudy:before {
|
||||
content:'\e03f';
|
||||
}
|
||||
|
||||
.oi-code:before {
|
||||
content:'\e040';
|
||||
}
|
||||
|
||||
.oi-cog:before {
|
||||
content:'\e041';
|
||||
}
|
||||
|
||||
.oi-collapse-down:before {
|
||||
content:'\e042';
|
||||
}
|
||||
|
||||
.oi-collapse-left:before {
|
||||
content:'\e043';
|
||||
}
|
||||
|
||||
.oi-collapse-right:before {
|
||||
content:'\e044';
|
||||
}
|
||||
|
||||
.oi-collapse-up:before {
|
||||
content:'\e045';
|
||||
}
|
||||
|
||||
.oi-command:before {
|
||||
content:'\e046';
|
||||
}
|
||||
|
||||
.oi-comment-square:before {
|
||||
content:'\e047';
|
||||
}
|
||||
|
||||
.oi-compass:before {
|
||||
content:'\e048';
|
||||
}
|
||||
|
||||
.oi-contrast:before {
|
||||
content:'\e049';
|
||||
}
|
||||
|
||||
.oi-copywriting:before {
|
||||
content:'\e04a';
|
||||
}
|
||||
|
||||
.oi-credit-card:before {
|
||||
content:'\e04b';
|
||||
}
|
||||
|
||||
.oi-crop:before {
|
||||
content:'\e04c';
|
||||
}
|
||||
|
||||
.oi-dashboard:before {
|
||||
content:'\e04d';
|
||||
}
|
||||
|
||||
.oi-data-transfer-download:before {
|
||||
content:'\e04e';
|
||||
}
|
||||
|
||||
.oi-data-transfer-upload:before {
|
||||
content:'\e04f';
|
||||
}
|
||||
|
||||
.oi-delete:before {
|
||||
content:'\e050';
|
||||
}
|
||||
|
||||
.oi-dial:before {
|
||||
content:'\e051';
|
||||
}
|
||||
|
||||
.oi-document:before {
|
||||
content:'\e052';
|
||||
}
|
||||
|
||||
.oi-dollar:before {
|
||||
content:'\e053';
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-left:before {
|
||||
content:'\e054';
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-right:before {
|
||||
content:'\e055';
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-left:before {
|
||||
content:'\e056';
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-right:before {
|
||||
content:'\e057';
|
||||
}
|
||||
|
||||
.oi-droplet:before {
|
||||
content:'\e058';
|
||||
}
|
||||
|
||||
.oi-eject:before {
|
||||
content:'\e059';
|
||||
}
|
||||
|
||||
.oi-elevator:before {
|
||||
content:'\e05a';
|
||||
}
|
||||
|
||||
.oi-ellipses:before {
|
||||
content:'\e05b';
|
||||
}
|
||||
|
||||
.oi-envelope-closed:before {
|
||||
content:'\e05c';
|
||||
}
|
||||
|
||||
.oi-envelope-open:before {
|
||||
content:'\e05d';
|
||||
}
|
||||
|
||||
.oi-euro:before {
|
||||
content:'\e05e';
|
||||
}
|
||||
|
||||
.oi-excerpt:before {
|
||||
content:'\e05f';
|
||||
}
|
||||
|
||||
.oi-expand-down:before {
|
||||
content:'\e060';
|
||||
}
|
||||
|
||||
.oi-expand-left:before {
|
||||
content:'\e061';
|
||||
}
|
||||
|
||||
.oi-expand-right:before {
|
||||
content:'\e062';
|
||||
}
|
||||
|
||||
.oi-expand-up:before {
|
||||
content:'\e063';
|
||||
}
|
||||
|
||||
.oi-external-link:before {
|
||||
content:'\e064';
|
||||
}
|
||||
|
||||
.oi-eye:before {
|
||||
content:'\e065';
|
||||
}
|
||||
|
||||
.oi-eyedropper:before {
|
||||
content:'\e066';
|
||||
}
|
||||
|
||||
.oi-file:before {
|
||||
content:'\e067';
|
||||
}
|
||||
|
||||
.oi-fire:before {
|
||||
content:'\e068';
|
||||
}
|
||||
|
||||
.oi-flag:before {
|
||||
content:'\e069';
|
||||
}
|
||||
|
||||
.oi-flash:before {
|
||||
content:'\e06a';
|
||||
}
|
||||
|
||||
.oi-folder:before {
|
||||
content:'\e06b';
|
||||
}
|
||||
|
||||
.oi-fork:before {
|
||||
content:'\e06c';
|
||||
}
|
||||
|
||||
.oi-fullscreen-enter:before {
|
||||
content:'\e06d';
|
||||
}
|
||||
|
||||
.oi-fullscreen-exit:before {
|
||||
content:'\e06e';
|
||||
}
|
||||
|
||||
.oi-globe:before {
|
||||
content:'\e06f';
|
||||
}
|
||||
|
||||
.oi-graph:before {
|
||||
content:'\e070';
|
||||
}
|
||||
|
||||
.oi-grid-four-up:before {
|
||||
content:'\e071';
|
||||
}
|
||||
|
||||
.oi-grid-three-up:before {
|
||||
content:'\e072';
|
||||
}
|
||||
|
||||
.oi-grid-two-up:before {
|
||||
content:'\e073';
|
||||
}
|
||||
|
||||
.oi-hard-drive:before {
|
||||
content:'\e074';
|
||||
}
|
||||
|
||||
.oi-header:before {
|
||||
content:'\e075';
|
||||
}
|
||||
|
||||
.oi-headphones:before {
|
||||
content:'\e076';
|
||||
}
|
||||
|
||||
.oi-heart:before {
|
||||
content:'\e077';
|
||||
}
|
||||
|
||||
.oi-home:before {
|
||||
content:'\e078';
|
||||
}
|
||||
|
||||
.oi-image:before {
|
||||
content:'\e079';
|
||||
}
|
||||
|
||||
.oi-inbox:before {
|
||||
content:'\e07a';
|
||||
}
|
||||
|
||||
.oi-infinity:before {
|
||||
content:'\e07b';
|
||||
}
|
||||
|
||||
.oi-info:before {
|
||||
content:'\e07c';
|
||||
}
|
||||
|
||||
.oi-italic:before {
|
||||
content:'\e07d';
|
||||
}
|
||||
|
||||
.oi-justify-center:before {
|
||||
content:'\e07e';
|
||||
}
|
||||
|
||||
.oi-justify-left:before {
|
||||
content:'\e07f';
|
||||
}
|
||||
|
||||
.oi-justify-right:before {
|
||||
content:'\e080';
|
||||
}
|
||||
|
||||
.oi-key:before {
|
||||
content:'\e081';
|
||||
}
|
||||
|
||||
.oi-laptop:before {
|
||||
content:'\e082';
|
||||
}
|
||||
|
||||
.oi-layers:before {
|
||||
content:'\e083';
|
||||
}
|
||||
|
||||
.oi-lightbulb:before {
|
||||
content:'\e084';
|
||||
}
|
||||
|
||||
.oi-link-broken:before {
|
||||
content:'\e085';
|
||||
}
|
||||
|
||||
.oi-link-intact:before {
|
||||
content:'\e086';
|
||||
}
|
||||
|
||||
.oi-list-rich:before {
|
||||
content:'\e087';
|
||||
}
|
||||
|
||||
.oi-list:before {
|
||||
content:'\e088';
|
||||
}
|
||||
|
||||
.oi-location:before {
|
||||
content:'\e089';
|
||||
}
|
||||
|
||||
.oi-lock-locked:before {
|
||||
content:'\e08a';
|
||||
}
|
||||
|
||||
.oi-lock-unlocked:before {
|
||||
content:'\e08b';
|
||||
}
|
||||
|
||||
.oi-loop-circular:before {
|
||||
content:'\e08c';
|
||||
}
|
||||
|
||||
.oi-loop-square:before {
|
||||
content:'\e08d';
|
||||
}
|
||||
|
||||
.oi-loop:before {
|
||||
content:'\e08e';
|
||||
}
|
||||
|
||||
.oi-magnifying-glass:before {
|
||||
content:'\e08f';
|
||||
}
|
||||
|
||||
.oi-map-marker:before {
|
||||
content:'\e090';
|
||||
}
|
||||
|
||||
.oi-map:before {
|
||||
content:'\e091';
|
||||
}
|
||||
|
||||
.oi-media-pause:before {
|
||||
content:'\e092';
|
||||
}
|
||||
|
||||
.oi-media-play:before {
|
||||
content:'\e093';
|
||||
}
|
||||
|
||||
.oi-media-record:before {
|
||||
content:'\e094';
|
||||
}
|
||||
|
||||
.oi-media-skip-backward:before {
|
||||
content:'\e095';
|
||||
}
|
||||
|
||||
.oi-media-skip-forward:before {
|
||||
content:'\e096';
|
||||
}
|
||||
|
||||
.oi-media-step-backward:before {
|
||||
content:'\e097';
|
||||
}
|
||||
|
||||
.oi-media-step-forward:before {
|
||||
content:'\e098';
|
||||
}
|
||||
|
||||
.oi-media-stop:before {
|
||||
content:'\e099';
|
||||
}
|
||||
|
||||
.oi-medical-cross:before {
|
||||
content:'\e09a';
|
||||
}
|
||||
|
||||
.oi-menu:before {
|
||||
content:'\e09b';
|
||||
}
|
||||
|
||||
.oi-microphone:before {
|
||||
content:'\e09c';
|
||||
}
|
||||
|
||||
.oi-minus:before {
|
||||
content:'\e09d';
|
||||
}
|
||||
|
||||
.oi-monitor:before {
|
||||
content:'\e09e';
|
||||
}
|
||||
|
||||
.oi-moon:before {
|
||||
content:'\e09f';
|
||||
}
|
||||
|
||||
.oi-move:before {
|
||||
content:'\e0a0';
|
||||
}
|
||||
|
||||
.oi-musical-note:before {
|
||||
content:'\e0a1';
|
||||
}
|
||||
|
||||
.oi-paperclip:before {
|
||||
content:'\e0a2';
|
||||
}
|
||||
|
||||
.oi-pencil:before {
|
||||
content:'\e0a3';
|
||||
}
|
||||
|
||||
.oi-people:before {
|
||||
content:'\e0a4';
|
||||
}
|
||||
|
||||
.oi-person:before {
|
||||
content:'\e0a5';
|
||||
}
|
||||
|
||||
.oi-phone:before {
|
||||
content:'\e0a6';
|
||||
}
|
||||
|
||||
.oi-pie-chart:before {
|
||||
content:'\e0a7';
|
||||
}
|
||||
|
||||
.oi-pin:before {
|
||||
content:'\e0a8';
|
||||
}
|
||||
|
||||
.oi-play-circle:before {
|
||||
content:'\e0a9';
|
||||
}
|
||||
|
||||
.oi-plus:before {
|
||||
content:'\e0aa';
|
||||
}
|
||||
|
||||
.oi-power-standby:before {
|
||||
content:'\e0ab';
|
||||
}
|
||||
|
||||
.oi-print:before {
|
||||
content:'\e0ac';
|
||||
}
|
||||
|
||||
.oi-project:before {
|
||||
content:'\e0ad';
|
||||
}
|
||||
|
||||
.oi-pulse:before {
|
||||
content:'\e0ae';
|
||||
}
|
||||
|
||||
.oi-puzzle-piece:before {
|
||||
content:'\e0af';
|
||||
}
|
||||
|
||||
.oi-question-mark:before {
|
||||
content:'\e0b0';
|
||||
}
|
||||
|
||||
.oi-rain:before {
|
||||
content:'\e0b1';
|
||||
}
|
||||
|
||||
.oi-random:before {
|
||||
content:'\e0b2';
|
||||
}
|
||||
|
||||
.oi-reload:before {
|
||||
content:'\e0b3';
|
||||
}
|
||||
|
||||
.oi-resize-both:before {
|
||||
content:'\e0b4';
|
||||
}
|
||||
|
||||
.oi-resize-height:before {
|
||||
content:'\e0b5';
|
||||
}
|
||||
|
||||
.oi-resize-width:before {
|
||||
content:'\e0b6';
|
||||
}
|
||||
|
||||
.oi-rss-alt:before {
|
||||
content:'\e0b7';
|
||||
}
|
||||
|
||||
.oi-rss:before {
|
||||
content:'\e0b8';
|
||||
}
|
||||
|
||||
.oi-script:before {
|
||||
content:'\e0b9';
|
||||
}
|
||||
|
||||
.oi-share-boxed:before {
|
||||
content:'\e0ba';
|
||||
}
|
||||
|
||||
.oi-share:before {
|
||||
content:'\e0bb';
|
||||
}
|
||||
|
||||
.oi-shield:before {
|
||||
content:'\e0bc';
|
||||
}
|
||||
|
||||
.oi-signal:before {
|
||||
content:'\e0bd';
|
||||
}
|
||||
|
||||
.oi-signpost:before {
|
||||
content:'\e0be';
|
||||
}
|
||||
|
||||
.oi-sort-ascending:before {
|
||||
content:'\e0bf';
|
||||
}
|
||||
|
||||
.oi-sort-descending:before {
|
||||
content:'\e0c0';
|
||||
}
|
||||
|
||||
.oi-spreadsheet:before {
|
||||
content:'\e0c1';
|
||||
}
|
||||
|
||||
.oi-star:before {
|
||||
content:'\e0c2';
|
||||
}
|
||||
|
||||
.oi-sun:before {
|
||||
content:'\e0c3';
|
||||
}
|
||||
|
||||
.oi-tablet:before {
|
||||
content:'\e0c4';
|
||||
}
|
||||
|
||||
.oi-tag:before {
|
||||
content:'\e0c5';
|
||||
}
|
||||
|
||||
.oi-tags:before {
|
||||
content:'\e0c6';
|
||||
}
|
||||
|
||||
.oi-target:before {
|
||||
content:'\e0c7';
|
||||
}
|
||||
|
||||
.oi-task:before {
|
||||
content:'\e0c8';
|
||||
}
|
||||
|
||||
.oi-terminal:before {
|
||||
content:'\e0c9';
|
||||
}
|
||||
|
||||
.oi-text:before {
|
||||
content:'\e0ca';
|
||||
}
|
||||
|
||||
.oi-thumb-down:before {
|
||||
content:'\e0cb';
|
||||
}
|
||||
|
||||
.oi-thumb-up:before {
|
||||
content:'\e0cc';
|
||||
}
|
||||
|
||||
.oi-timer:before {
|
||||
content:'\e0cd';
|
||||
}
|
||||
|
||||
.oi-transfer:before {
|
||||
content:'\e0ce';
|
||||
}
|
||||
|
||||
.oi-trash:before {
|
||||
content:'\e0cf';
|
||||
}
|
||||
|
||||
.oi-underline:before {
|
||||
content:'\e0d0';
|
||||
}
|
||||
|
||||
.oi-vertical-align-bottom:before {
|
||||
content:'\e0d1';
|
||||
}
|
||||
|
||||
.oi-vertical-align-center:before {
|
||||
content:'\e0d2';
|
||||
}
|
||||
|
||||
.oi-vertical-align-top:before {
|
||||
content:'\e0d3';
|
||||
}
|
||||
|
||||
.oi-video:before {
|
||||
content:'\e0d4';
|
||||
}
|
||||
|
||||
.oi-volume-high:before {
|
||||
content:'\e0d5';
|
||||
}
|
||||
|
||||
.oi-volume-low:before {
|
||||
content:'\e0d6';
|
||||
}
|
||||
|
||||
.oi-volume-off:before {
|
||||
content:'\e0d7';
|
||||
}
|
||||
|
||||
.oi-warning:before {
|
||||
content:'\e0d8';
|
||||
}
|
||||
|
||||
.oi-wifi:before {
|
||||
content:'\e0d9';
|
||||
}
|
||||
|
||||
.oi-wrench:before {
|
||||
content:'\e0da';
|
||||
}
|
||||
|
||||
.oi-x:before {
|
||||
content:'\e0db';
|
||||
}
|
||||
|
||||
.oi-yen:before {
|
||||
content:'\e0dc';
|
||||
}
|
||||
|
||||
.oi-zoom-in:before {
|
||||
content:'\e0dd';
|
||||
}
|
||||
|
||||
.oi-zoom-out:before {
|
||||
content:'\e0de';
|
||||
}
|
||||
|
954
public/assets/css/open-iconic-bootstrap.styl
Normal file
954
public/assets/css/open-iconic-bootstrap.styl
Normal file
|
@ -0,0 +1,954 @@
|
|||
/* Bootstrap */
|
||||
|
||||
@font-face
|
||||
font-family 'Icons'
|
||||
src url('../fonts/open-iconic.eot')
|
||||
src url('../fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg')
|
||||
font-weight normal
|
||||
font-style normal
|
||||
|
||||
|
||||
// Catchall baseclass
|
||||
.oi
|
||||
position relative
|
||||
top 1px
|
||||
display inline-block
|
||||
font-family 'Icons'
|
||||
font-style normal
|
||||
font-weight normal
|
||||
line-height 1
|
||||
-webkit-font-smoothing antialiased
|
||||
-moz-osx-font-smoothing grayscale
|
||||
|
||||
|
||||
&:empty:before
|
||||
width 1em
|
||||
text-align center
|
||||
box-sizing content-box
|
||||
|
||||
&.oi-align-center:before
|
||||
text-align center
|
||||
|
||||
|
||||
&.oi-align-left:before
|
||||
text-align left
|
||||
|
||||
|
||||
&.oi-align-right:before
|
||||
text-align right
|
||||
|
||||
|
||||
|
||||
&.oi-flip-horizontal:before
|
||||
-webkit-transform scale(-1, 1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(-1, 1)
|
||||
|
||||
|
||||
&.oi-flip-vertical:before
|
||||
-webkit-transform scale(1, -1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(1, -1)
|
||||
|
||||
|
||||
&.oi-flip-horizontal-vertical:before
|
||||
-webkit-transform scale(-1, -1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(-1, -1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.oi-account-login:before {
|
||||
content'\e000'
|
||||
}
|
||||
|
||||
.oi-account-logout:before {
|
||||
content'\e001'
|
||||
}
|
||||
|
||||
.oi-action-redo:before {
|
||||
content'\e002'
|
||||
}
|
||||
|
||||
.oi-action-undo:before {
|
||||
content'\e003'
|
||||
}
|
||||
|
||||
.oi-align-center:before {
|
||||
content'\e004'
|
||||
}
|
||||
|
||||
.oi-align-left:before {
|
||||
content'\e005'
|
||||
}
|
||||
|
||||
.oi-align-right:before {
|
||||
content'\e006'
|
||||
}
|
||||
|
||||
.oi-aperture:before {
|
||||
content'\e007'
|
||||
}
|
||||
|
||||
.oi-arrow-bottom:before {
|
||||
content'\e008'
|
||||
}
|
||||
|
||||
.oi-arrow-circle-bottom:before {
|
||||
content'\e009'
|
||||
}
|
||||
|
||||
.oi-arrow-circle-left:before {
|
||||
content'\e00a'
|
||||
}
|
||||
|
||||
.oi-arrow-circle-right:before {
|
||||
content'\e00b'
|
||||
}
|
||||
|
||||
.oi-arrow-circle-top:before {
|
||||
content'\e00c'
|
||||
}
|
||||
|
||||
.oi-arrow-left:before {
|
||||
content'\e00d'
|
||||
}
|
||||
|
||||
.oi-arrow-right:before {
|
||||
content'\e00e'
|
||||
}
|
||||
|
||||
.oi-arrow-thick-bottom:before {
|
||||
content'\e00f'
|
||||
}
|
||||
|
||||
.oi-arrow-thick-left:before {
|
||||
content'\e010'
|
||||
}
|
||||
|
||||
.oi-arrow-thick-right:before {
|
||||
content'\e011'
|
||||
}
|
||||
|
||||
.oi-arrow-thick-top:before {
|
||||
content'\e012'
|
||||
}
|
||||
|
||||
.oi-arrow-top:before {
|
||||
content'\e013'
|
||||
}
|
||||
|
||||
.oi-audio-spectrum:before {
|
||||
content'\e014'
|
||||
}
|
||||
|
||||
.oi-audio:before {
|
||||
content'\e015'
|
||||
}
|
||||
|
||||
.oi-badge:before {
|
||||
content'\e016'
|
||||
}
|
||||
|
||||
.oi-ban:before {
|
||||
content'\e017'
|
||||
}
|
||||
|
||||
.oi-bar-chart:before {
|
||||
content'\e018'
|
||||
}
|
||||
|
||||
.oi-basket:before {
|
||||
content'\e019'
|
||||
}
|
||||
|
||||
.oi-battery-empty:before {
|
||||
content'\e01a'
|
||||
}
|
||||
|
||||
.oi-battery-full:before {
|
||||
content'\e01b'
|
||||
}
|
||||
|
||||
.oi-beaker:before {
|
||||
content'\e01c'
|
||||
}
|
||||
|
||||
.oi-bell:before {
|
||||
content'\e01d'
|
||||
}
|
||||
|
||||
.oi-bluetooth:before {
|
||||
content'\e01e'
|
||||
}
|
||||
|
||||
.oi-bold:before {
|
||||
content'\e01f'
|
||||
}
|
||||
|
||||
.oi-bolt:before {
|
||||
content'\e020'
|
||||
}
|
||||
|
||||
.oi-book:before {
|
||||
content'\e021'
|
||||
}
|
||||
|
||||
.oi-bookmark:before {
|
||||
content'\e022'
|
||||
}
|
||||
|
||||
.oi-box:before {
|
||||
content'\e023'
|
||||
}
|
||||
|
||||
.oi-briefcase:before {
|
||||
content'\e024'
|
||||
}
|
||||
|
||||
.oi-british-pound:before {
|
||||
content'\e025'
|
||||
}
|
||||
|
||||
.oi-browser:before {
|
||||
content'\e026'
|
||||
}
|
||||
|
||||
.oi-brush:before {
|
||||
content'\e027'
|
||||
}
|
||||
|
||||
.oi-bug:before {
|
||||
content'\e028'
|
||||
}
|
||||
|
||||
.oi-bullhorn:before {
|
||||
content'\e029'
|
||||
}
|
||||
|
||||
.oi-calculator:before {
|
||||
content'\e02a'
|
||||
}
|
||||
|
||||
.oi-calendar:before {
|
||||
content'\e02b'
|
||||
}
|
||||
|
||||
.oi-camera-slr:before {
|
||||
content'\e02c'
|
||||
}
|
||||
|
||||
.oi-caret-bottom:before {
|
||||
content'\e02d'
|
||||
}
|
||||
|
||||
.oi-caret-left:before {
|
||||
content'\e02e'
|
||||
}
|
||||
|
||||
.oi-caret-right:before {
|
||||
content'\e02f'
|
||||
}
|
||||
|
||||
.oi-caret-top:before {
|
||||
content'\e030'
|
||||
}
|
||||
|
||||
.oi-cart:before {
|
||||
content'\e031'
|
||||
}
|
||||
|
||||
.oi-chat:before {
|
||||
content'\e032'
|
||||
}
|
||||
|
||||
.oi-check:before {
|
||||
content'\e033'
|
||||
}
|
||||
|
||||
.oi-chevron-bottom:before {
|
||||
content'\e034'
|
||||
}
|
||||
|
||||
.oi-chevron-left:before {
|
||||
content'\e035'
|
||||
}
|
||||
|
||||
.oi-chevron-right:before {
|
||||
content'\e036'
|
||||
}
|
||||
|
||||
.oi-chevron-top:before {
|
||||
content'\e037'
|
||||
}
|
||||
|
||||
.oi-circle-check:before {
|
||||
content'\e038'
|
||||
}
|
||||
|
||||
.oi-circle-x:before {
|
||||
content'\e039'
|
||||
}
|
||||
|
||||
.oi-clipboard:before {
|
||||
content'\e03a'
|
||||
}
|
||||
|
||||
.oi-clock:before {
|
||||
content'\e03b'
|
||||
}
|
||||
|
||||
.oi-cloud-download:before {
|
||||
content'\e03c'
|
||||
}
|
||||
|
||||
.oi-cloud-upload:before {
|
||||
content'\e03d'
|
||||
}
|
||||
|
||||
.oi-cloud:before {
|
||||
content'\e03e'
|
||||
}
|
||||
|
||||
.oi-cloudy:before {
|
||||
content'\e03f'
|
||||
}
|
||||
|
||||
.oi-code:before {
|
||||
content'\e040'
|
||||
}
|
||||
|
||||
.oi-cog:before {
|
||||
content'\e041'
|
||||
}
|
||||
|
||||
.oi-collapse-down:before {
|
||||
content'\e042'
|
||||
}
|
||||
|
||||
.oi-collapse-left:before {
|
||||
content'\e043'
|
||||
}
|
||||
|
||||
.oi-collapse-right:before {
|
||||
content'\e044'
|
||||
}
|
||||
|
||||
.oi-collapse-up:before {
|
||||
content'\e045'
|
||||
}
|
||||
|
||||
.oi-command:before {
|
||||
content'\e046'
|
||||
}
|
||||
|
||||
.oi-comment-square:before {
|
||||
content'\e047'
|
||||
}
|
||||
|
||||
.oi-compass:before {
|
||||
content'\e048'
|
||||
}
|
||||
|
||||
.oi-contrast:before {
|
||||
content'\e049'
|
||||
}
|
||||
|
||||
.oi-copywriting:before {
|
||||
content'\e04a'
|
||||
}
|
||||
|
||||
.oi-credit-card:before {
|
||||
content'\e04b'
|
||||
}
|
||||
|
||||
.oi-crop:before {
|
||||
content'\e04c'
|
||||
}
|
||||
|
||||
.oi-dashboard:before {
|
||||
content'\e04d'
|
||||
}
|
||||
|
||||
.oi-data-transfer-download:before {
|
||||
content'\e04e'
|
||||
}
|
||||
|
||||
.oi-data-transfer-upload:before {
|
||||
content'\e04f'
|
||||
}
|
||||
|
||||
.oi-delete:before {
|
||||
content'\e050'
|
||||
}
|
||||
|
||||
.oi-dial:before {
|
||||
content'\e051'
|
||||
}
|
||||
|
||||
.oi-document:before {
|
||||
content'\e052'
|
||||
}
|
||||
|
||||
.oi-dollar:before {
|
||||
content'\e053'
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-left:before {
|
||||
content'\e054'
|
||||
}
|
||||
|
||||
.oi-double-quote-sans-right:before {
|
||||
content'\e055'
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-left:before {
|
||||
content'\e056'
|
||||
}
|
||||
|
||||
.oi-double-quote-serif-right:before {
|
||||
content'\e057'
|
||||
}
|
||||
|
||||
.oi-droplet:before {
|
||||
content'\e058'
|
||||
}
|
||||
|
||||
.oi-eject:before {
|
||||
content'\e059'
|
||||
}
|
||||
|
||||
.oi-elevator:before {
|
||||
content'\e05a'
|
||||
}
|
||||
|
||||
.oi-ellipses:before {
|
||||
content'\e05b'
|
||||
}
|
||||
|
||||
.oi-envelope-closed:before {
|
||||
content'\e05c'
|
||||
}
|
||||
|
||||
.oi-envelope-open:before {
|
||||
content'\e05d'
|
||||
}
|
||||
|
||||
.oi-euro:before {
|
||||
content'\e05e'
|
||||
}
|
||||
|
||||
.oi-excerpt:before {
|
||||
content'\e05f'
|
||||
}
|
||||
|
||||
.oi-expand-down:before {
|
||||
content'\e060'
|
||||
}
|
||||
|
||||
.oi-expand-left:before {
|
||||
content'\e061'
|
||||
}
|
||||
|
||||
.oi-expand-right:before {
|
||||
content'\e062'
|
||||
}
|
||||
|
||||
.oi-expand-up:before {
|
||||
content'\e063'
|
||||
}
|
||||
|
||||
.oi-external-link:before {
|
||||
content'\e064'
|
||||
}
|
||||
|
||||
.oi-eye:before {
|
||||
content'\e065'
|
||||
}
|
||||
|
||||
.oi-eyedropper:before {
|
||||
content'\e066'
|
||||
}
|
||||
|
||||
.oi-file:before {
|
||||
content'\e067'
|
||||
}
|
||||
|
||||
.oi-fire:before {
|
||||
content'\e068'
|
||||
}
|
||||
|
||||
.oi-flag:before {
|
||||
content'\e069'
|
||||
}
|
||||
|
||||
.oi-flash:before {
|
||||
content'\e06a'
|
||||
}
|
||||
|
||||
.oi-folder:before {
|
||||
content'\e06b'
|
||||
}
|
||||
|
||||
.oi-fork:before {
|
||||
content'\e06c'
|
||||
}
|
||||
|
||||
.oi-fullscreen-enter:before {
|
||||
content'\e06d'
|
||||
}
|
||||
|
||||
.oi-fullscreen-exit:before {
|
||||
content'\e06e'
|
||||
}
|
||||
|
||||
.oi-globe:before {
|
||||
content'\e06f'
|
||||
}
|
||||
|
||||
.oi-graph:before {
|
||||
content'\e070'
|
||||
}
|
||||
|
||||
.oi-grid-four-up:before {
|
||||
content'\e071'
|
||||
}
|
||||
|
||||
.oi-grid-three-up:before {
|
||||
content'\e072'
|
||||
}
|
||||
|
||||
.oi-grid-two-up:before {
|
||||
content'\e073'
|
||||
}
|
||||
|
||||
.oi-hard-drive:before {
|
||||
content'\e074'
|
||||
}
|
||||
|
||||
.oi-header:before {
|
||||
content'\e075'
|
||||
}
|
||||
|
||||
.oi-headphones:before {
|
||||
content'\e076'
|
||||
}
|
||||
|
||||
.oi-heart:before {
|
||||
content'\e077'
|
||||
}
|
||||
|
||||
.oi-home:before {
|
||||
content'\e078'
|
||||
}
|
||||
|
||||
.oi-image:before {
|
||||
content'\e079'
|
||||
}
|
||||
|
||||
.oi-inbox:before {
|
||||
content'\e07a'
|
||||
}
|
||||
|
||||
.oi-infinity:before {
|
||||
content'\e07b'
|
||||
}
|
||||
|
||||
.oi-info:before {
|
||||
content'\e07c'
|
||||
}
|
||||
|
||||
.oi-italic:before {
|
||||
content'\e07d'
|
||||
}
|
||||
|
||||
.oi-justify-center:before {
|
||||
content'\e07e'
|
||||
}
|
||||
|
||||
.oi-justify-left:before {
|
||||
content'\e07f'
|
||||
}
|
||||
|
||||
.oi-justify-right:before {
|
||||
content'\e080'
|
||||
}
|
||||
|
||||
.oi-key:before {
|
||||
content'\e081'
|
||||
}
|
||||
|
||||
.oi-laptop:before {
|
||||
content'\e082'
|
||||
}
|
||||
|
||||
.oi-layers:before {
|
||||
content'\e083'
|
||||
}
|
||||
|
||||
.oi-lightbulb:before {
|
||||
content'\e084'
|
||||
}
|
||||
|
||||
.oi-link-broken:before {
|
||||
content'\e085'
|
||||
}
|
||||
|
||||
.oi-link-intact:before {
|
||||
content'\e086'
|
||||
}
|
||||
|
||||
.oi-list-rich:before {
|
||||
content'\e087'
|
||||
}
|
||||
|
||||
.oi-list:before {
|
||||
content'\e088'
|
||||
}
|
||||
|
||||
.oi-location:before {
|
||||
content'\e089'
|
||||
}
|
||||
|
||||
.oi-lock-locked:before {
|
||||
content'\e08a'
|
||||
}
|
||||
|
||||
.oi-lock-unlocked:before {
|
||||
content'\e08b'
|
||||
}
|
||||
|
||||
.oi-loop-circular:before {
|
||||
content'\e08c'
|
||||
}
|
||||
|
||||
.oi-loop-square:before {
|
||||
content'\e08d'
|
||||
}
|
||||
|
||||
.oi-loop:before {
|
||||
content'\e08e'
|
||||
}
|
||||
|
||||
.oi-magnifying-glass:before {
|
||||
content'\e08f'
|
||||
}
|
||||
|
||||
.oi-map-marker:before {
|
||||
content'\e090'
|
||||
}
|
||||
|
||||
.oi-map:before {
|
||||
content'\e091'
|
||||
}
|
||||
|
||||
.oi-media-pause:before {
|
||||
content'\e092'
|
||||
}
|
||||
|
||||
.oi-media-play:before {
|
||||
content'\e093'
|
||||
}
|
||||
|
||||
.oi-media-record:before {
|
||||
content'\e094'
|
||||
}
|
||||
|
||||
.oi-media-skip-backward:before {
|
||||
content'\e095'
|
||||
}
|
||||
|
||||
.oi-media-skip-forward:before {
|
||||
content'\e096'
|
||||
}
|
||||
|
||||
.oi-media-step-backward:before {
|
||||
content'\e097'
|
||||
}
|
||||
|
||||
.oi-media-step-forward:before {
|
||||
content'\e098'
|
||||
}
|
||||
|
||||
.oi-media-stop:before {
|
||||
content'\e099'
|
||||
}
|
||||
|
||||
.oi-medical-cross:before {
|
||||
content'\e09a'
|
||||
}
|
||||
|
||||
.oi-menu:before {
|
||||
content'\e09b'
|
||||
}
|
||||
|
||||
.oi-microphone:before {
|
||||
content'\e09c'
|
||||
}
|
||||
|
||||
.oi-minus:before {
|
||||
content'\e09d'
|
||||
}
|
||||
|
||||
.oi-monitor:before {
|
||||
content'\e09e'
|
||||
}
|
||||
|
||||
.oi-moon:before {
|
||||
content'\e09f'
|
||||
}
|
||||
|
||||
.oi-move:before {
|
||||
content'\e0a0'
|
||||
}
|
||||
|
||||
.oi-musical-note:before {
|
||||
content'\e0a1'
|
||||
}
|
||||
|
||||
.oi-paperclip:before {
|
||||
content'\e0a2'
|
||||
}
|
||||
|
||||
.oi-pencil:before {
|
||||
content'\e0a3'
|
||||
}
|
||||
|
||||
.oi-people:before {
|
||||
content'\e0a4'
|
||||
}
|
||||
|
||||
.oi-person:before {
|
||||
content'\e0a5'
|
||||
}
|
||||
|
||||
.oi-phone:before {
|
||||
content'\e0a6'
|
||||
}
|
||||
|
||||
.oi-pie-chart:before {
|
||||
content'\e0a7'
|
||||
}
|
||||
|
||||
.oi-pin:before {
|
||||
content'\e0a8'
|
||||
}
|
||||
|
||||
.oi-play-circle:before {
|
||||
content'\e0a9'
|
||||
}
|
||||
|
||||
.oi-plus:before {
|
||||
content'\e0aa'
|
||||
}
|
||||
|
||||
.oi-power-standby:before {
|
||||
content'\e0ab'
|
||||
}
|
||||
|
||||
.oi-print:before {
|
||||
content'\e0ac'
|
||||
}
|
||||
|
||||
.oi-project:before {
|
||||
content'\e0ad'
|
||||
}
|
||||
|
||||
.oi-pulse:before {
|
||||
content'\e0ae'
|
||||
}
|
||||
|
||||
.oi-puzzle-piece:before {
|
||||
content'\e0af'
|
||||
}
|
||||
|
||||
.oi-question-mark:before {
|
||||
content'\e0b0'
|
||||
}
|
||||
|
||||
.oi-rain:before {
|
||||
content'\e0b1'
|
||||
}
|
||||
|
||||
.oi-random:before {
|
||||
content'\e0b2'
|
||||
}
|
||||
|
||||
.oi-reload:before {
|
||||
content'\e0b3'
|
||||
}
|
||||
|
||||
.oi-resize-both:before {
|
||||
content'\e0b4'
|
||||
}
|
||||
|
||||
.oi-resize-height:before {
|
||||
content'\e0b5'
|
||||
}
|
||||
|
||||
.oi-resize-width:before {
|
||||
content'\e0b6'
|
||||
}
|
||||
|
||||
.oi-rss-alt:before {
|
||||
content'\e0b7'
|
||||
}
|
||||
|
||||
.oi-rss:before {
|
||||
content'\e0b8'
|
||||
}
|
||||
|
||||
.oi-script:before {
|
||||
content'\e0b9'
|
||||
}
|
||||
|
||||
.oi-share-boxed:before {
|
||||
content'\e0ba'
|
||||
}
|
||||
|
||||
.oi-share:before {
|
||||
content'\e0bb'
|
||||
}
|
||||
|
||||
.oi-shield:before {
|
||||
content'\e0bc'
|
||||
}
|
||||
|
||||
.oi-signal:before {
|
||||
content'\e0bd'
|
||||
}
|
||||
|
||||
.oi-signpost:before {
|
||||
content'\e0be'
|
||||
}
|
||||
|
||||
.oi-sort-ascending:before {
|
||||
content'\e0bf'
|
||||
}
|
||||
|
||||
.oi-sort-descending:before {
|
||||
content'\e0c0'
|
||||
}
|
||||
|
||||
.oi-spreadsheet:before {
|
||||
content'\e0c1'
|
||||
}
|
||||
|
||||
.oi-star:before {
|
||||
content'\e0c2'
|
||||
}
|
||||
|
||||
.oi-sun:before {
|
||||
content'\e0c3'
|
||||
}
|
||||
|
||||
.oi-tablet:before {
|
||||
content'\e0c4'
|
||||
}
|
||||
|
||||
.oi-tag:before {
|
||||
content'\e0c5'
|
||||
}
|
||||
|
||||
.oi-tags:before {
|
||||
content'\e0c6'
|
||||
}
|
||||
|
||||
.oi-target:before {
|
||||
content'\e0c7'
|
||||
}
|
||||
|
||||
.oi-task:before {
|
||||
content'\e0c8'
|
||||
}
|
||||
|
||||
.oi-terminal:before {
|
||||
content'\e0c9'
|
||||
}
|
||||
|
||||
.oi-text:before {
|
||||
content'\e0ca'
|
||||
}
|
||||
|
||||
.oi-thumb-down:before {
|
||||
content'\e0cb'
|
||||
}
|
||||
|
||||
.oi-thumb-up:before {
|
||||
content'\e0cc'
|
||||
}
|
||||
|
||||
.oi-timer:before {
|
||||
content'\e0cd'
|
||||
}
|
||||
|
||||
.oi-transfer:before {
|
||||
content'\e0ce'
|
||||
}
|
||||
|
||||
.oi-trash:before {
|
||||
content'\e0cf'
|
||||
}
|
||||
|
||||
.oi-underline:before {
|
||||
content'\e0d0'
|
||||
}
|
||||
|
||||
.oi-vertical-align-bottom:before {
|
||||
content'\e0d1'
|
||||
}
|
||||
|
||||
.oi-vertical-align-center:before {
|
||||
content'\e0d2'
|
||||
}
|
||||
|
||||
.oi-vertical-align-top:before {
|
||||
content'\e0d3'
|
||||
}
|
||||
|
||||
.oi-video:before {
|
||||
content'\e0d4'
|
||||
}
|
||||
|
||||
.oi-volume-high:before {
|
||||
content'\e0d5'
|
||||
}
|
||||
|
||||
.oi-volume-low:before {
|
||||
content'\e0d6'
|
||||
}
|
||||
|
||||
.oi-volume-off:before {
|
||||
content'\e0d7'
|
||||
}
|
||||
|
||||
.oi-warning:before {
|
||||
content'\e0d8'
|
||||
}
|
||||
|
||||
.oi-wifi:before {
|
||||
content'\e0d9'
|
||||
}
|
||||
|
||||
.oi-wrench:before {
|
||||
content'\e0da'
|
||||
}
|
||||
|
||||
.oi-x:before {
|
||||
content'\e0db'
|
||||
}
|
||||
|
||||
.oi-yen:before {
|
||||
content'\e0dc'
|
||||
}
|
||||
|
||||
.oi-zoom-in:before {
|
||||
content'\e0dd'
|
||||
}
|
||||
|
||||
.oi-zoom-out:before {
|
||||
content'\e0de'
|
||||
}
|
||||
|
1395
public/assets/css/open-iconic-foundation.css
Normal file
1395
public/assets/css/open-iconic-foundation.css
Normal file
File diff suppressed because it is too large
Load diff
1397
public/assets/css/open-iconic-foundation.less
Normal file
1397
public/assets/css/open-iconic-foundation.less
Normal file
File diff suppressed because it is too large
Load diff
1
public/assets/css/open-iconic-foundation.min.css
vendored
Normal file
1
public/assets/css/open-iconic-foundation.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1398
public/assets/css/open-iconic-foundation.scss
Normal file
1398
public/assets/css/open-iconic-foundation.scss
Normal file
File diff suppressed because it is too large
Load diff
1392
public/assets/css/open-iconic-foundation.styl
Normal file
1392
public/assets/css/open-iconic-foundation.styl
Normal file
File diff suppressed because it is too large
Load diff
511
public/assets/css/open-iconic.css
Normal file
511
public/assets/css/open-iconic.css
Normal file
|
@ -0,0 +1,511 @@
|
|||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: url('../fonts/open-iconic.eot');
|
||||
src: url('../fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.otf') format('opentype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace {
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oi[data-glyph]:before {
|
||||
font-family: 'Icons';
|
||||
display: inline-block;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.oi[data-glyph]:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
.oi[data-glyph].oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
.oi[data-glyph].oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
|
||||
|
||||
.oi[data-glyph=account-login]:before { content:'\e000'; }
|
||||
|
||||
.oi[data-glyph=account-logout]:before { content:'\e001'; }
|
||||
|
||||
.oi[data-glyph=action-redo]:before { content:'\e002'; }
|
||||
|
||||
.oi[data-glyph=action-undo]:before { content:'\e003'; }
|
||||
|
||||
.oi[data-glyph=align-center]:before { content:'\e004'; }
|
||||
|
||||
.oi[data-glyph=align-left]:before { content:'\e005'; }
|
||||
|
||||
.oi[data-glyph=align-right]:before { content:'\e006'; }
|
||||
|
||||
.oi[data-glyph=aperture]:before { content:'\e007'; }
|
||||
|
||||
.oi[data-glyph=arrow-bottom]:before { content:'\e008'; }
|
||||
|
||||
.oi[data-glyph=arrow-circle-bottom]:before { content:'\e009'; }
|
||||
|
||||
.oi[data-glyph=arrow-circle-left]:before { content:'\e00a'; }
|
||||
|
||||
.oi[data-glyph=arrow-circle-right]:before { content:'\e00b'; }
|
||||
|
||||
.oi[data-glyph=arrow-circle-top]:before { content:'\e00c'; }
|
||||
|
||||
.oi[data-glyph=arrow-left]:before { content:'\e00d'; }
|
||||
|
||||
.oi[data-glyph=arrow-right]:before { content:'\e00e'; }
|
||||
|
||||
.oi[data-glyph=arrow-thick-bottom]:before { content:'\e00f'; }
|
||||
|
||||
.oi[data-glyph=arrow-thick-left]:before { content:'\e010'; }
|
||||
|
||||
.oi[data-glyph=arrow-thick-right]:before { content:'\e011'; }
|
||||
|
||||
.oi[data-glyph=arrow-thick-top]:before { content:'\e012'; }
|
||||
|
||||
.oi[data-glyph=arrow-top]:before { content:'\e013'; }
|
||||
|
||||
.oi[data-glyph=audio-spectrum]:before { content:'\e014'; }
|
||||
|
||||
.oi[data-glyph=audio]:before { content:'\e015'; }
|
||||
|
||||
.oi[data-glyph=badge]:before { content:'\e016'; }
|
||||
|
||||
.oi[data-glyph=ban]:before { content:'\e017'; }
|
||||
|
||||
.oi[data-glyph=bar-chart]:before { content:'\e018'; }
|
||||
|
||||
.oi[data-glyph=basket]:before { content:'\e019'; }
|
||||
|
||||
.oi[data-glyph=battery-empty]:before { content:'\e01a'; }
|
||||
|
||||
.oi[data-glyph=battery-full]:before { content:'\e01b'; }
|
||||
|
||||
.oi[data-glyph=beaker]:before { content:'\e01c'; }
|
||||
|
||||
.oi[data-glyph=bell]:before { content:'\e01d'; }
|
||||
|
||||
.oi[data-glyph=bluetooth]:before { content:'\e01e'; }
|
||||
|
||||
.oi[data-glyph=bold]:before { content:'\e01f'; }
|
||||
|
||||
.oi[data-glyph=bolt]:before { content:'\e020'; }
|
||||
|
||||
.oi[data-glyph=book]:before { content:'\e021'; }
|
||||
|
||||
.oi[data-glyph=bookmark]:before { content:'\e022'; }
|
||||
|
||||
.oi[data-glyph=box]:before { content:'\e023'; }
|
||||
|
||||
.oi[data-glyph=briefcase]:before { content:'\e024'; }
|
||||
|
||||
.oi[data-glyph=british-pound]:before { content:'\e025'; }
|
||||
|
||||
.oi[data-glyph=browser]:before { content:'\e026'; }
|
||||
|
||||
.oi[data-glyph=brush]:before { content:'\e027'; }
|
||||
|
||||
.oi[data-glyph=bug]:before { content:'\e028'; }
|
||||
|
||||
.oi[data-glyph=bullhorn]:before { content:'\e029'; }
|
||||
|
||||
.oi[data-glyph=calculator]:before { content:'\e02a'; }
|
||||
|
||||
.oi[data-glyph=calendar]:before { content:'\e02b'; }
|
||||
|
||||
.oi[data-glyph=camera-slr]:before { content:'\e02c'; }
|
||||
|
||||
.oi[data-glyph=caret-bottom]:before { content:'\e02d'; }
|
||||
|
||||
.oi[data-glyph=caret-left]:before { content:'\e02e'; }
|
||||
|
||||
.oi[data-glyph=caret-right]:before { content:'\e02f'; }
|
||||
|
||||
.oi[data-glyph=caret-top]:before { content:'\e030'; }
|
||||
|
||||
.oi[data-glyph=cart]:before { content:'\e031'; }
|
||||
|
||||
.oi[data-glyph=chat]:before { content:'\e032'; }
|
||||
|
||||
.oi[data-glyph=check]:before { content:'\e033'; }
|
||||
|
||||
.oi[data-glyph=chevron-bottom]:before { content:'\e034'; }
|
||||
|
||||
.oi[data-glyph=chevron-left]:before { content:'\e035'; }
|
||||
|
||||
.oi[data-glyph=chevron-right]:before { content:'\e036'; }
|
||||
|
||||
.oi[data-glyph=chevron-top]:before { content:'\e037'; }
|
||||
|
||||
.oi[data-glyph=circle-check]:before { content:'\e038'; }
|
||||
|
||||
.oi[data-glyph=circle-x]:before { content:'\e039'; }
|
||||
|
||||
.oi[data-glyph=clipboard]:before { content:'\e03a'; }
|
||||
|
||||
.oi[data-glyph=clock]:before { content:'\e03b'; }
|
||||
|
||||
.oi[data-glyph=cloud-download]:before { content:'\e03c'; }
|
||||
|
||||
.oi[data-glyph=cloud-upload]:before { content:'\e03d'; }
|
||||
|
||||
.oi[data-glyph=cloud]:before { content:'\e03e'; }
|
||||
|
||||
.oi[data-glyph=cloudy]:before { content:'\e03f'; }
|
||||
|
||||
.oi[data-glyph=code]:before { content:'\e040'; }
|
||||
|
||||
.oi[data-glyph=cog]:before { content:'\e041'; }
|
||||
|
||||
.oi[data-glyph=collapse-down]:before { content:'\e042'; }
|
||||
|
||||
.oi[data-glyph=collapse-left]:before { content:'\e043'; }
|
||||
|
||||
.oi[data-glyph=collapse-right]:before { content:'\e044'; }
|
||||
|
||||
.oi[data-glyph=collapse-up]:before { content:'\e045'; }
|
||||
|
||||
.oi[data-glyph=command]:before { content:'\e046'; }
|
||||
|
||||
.oi[data-glyph=comment-square]:before { content:'\e047'; }
|
||||
|
||||
.oi[data-glyph=compass]:before { content:'\e048'; }
|
||||
|
||||
.oi[data-glyph=contrast]:before { content:'\e049'; }
|
||||
|
||||
.oi[data-glyph=copywriting]:before { content:'\e04a'; }
|
||||
|
||||
.oi[data-glyph=credit-card]:before { content:'\e04b'; }
|
||||
|
||||
.oi[data-glyph=crop]:before { content:'\e04c'; }
|
||||
|
||||
.oi[data-glyph=dashboard]:before { content:'\e04d'; }
|
||||
|
||||
.oi[data-glyph=data-transfer-download]:before { content:'\e04e'; }
|
||||
|
||||
.oi[data-glyph=data-transfer-upload]:before { content:'\e04f'; }
|
||||
|
||||
.oi[data-glyph=delete]:before { content:'\e050'; }
|
||||
|
||||
.oi[data-glyph=dial]:before { content:'\e051'; }
|
||||
|
||||
.oi[data-glyph=document]:before { content:'\e052'; }
|
||||
|
||||
.oi[data-glyph=dollar]:before { content:'\e053'; }
|
||||
|
||||
.oi[data-glyph=double-quote-sans-left]:before { content:'\e054'; }
|
||||
|
||||
.oi[data-glyph=double-quote-sans-right]:before { content:'\e055'; }
|
||||
|
||||
.oi[data-glyph=double-quote-serif-left]:before { content:'\e056'; }
|
||||
|
||||
.oi[data-glyph=double-quote-serif-right]:before { content:'\e057'; }
|
||||
|
||||
.oi[data-glyph=droplet]:before { content:'\e058'; }
|
||||
|
||||
.oi[data-glyph=eject]:before { content:'\e059'; }
|
||||
|
||||
.oi[data-glyph=elevator]:before { content:'\e05a'; }
|
||||
|
||||
.oi[data-glyph=ellipses]:before { content:'\e05b'; }
|
||||
|
||||
.oi[data-glyph=envelope-closed]:before { content:'\e05c'; }
|
||||
|
||||
.oi[data-glyph=envelope-open]:before { content:'\e05d'; }
|
||||
|
||||
.oi[data-glyph=euro]:before { content:'\e05e'; }
|
||||
|
||||
.oi[data-glyph=excerpt]:before { content:'\e05f'; }
|
||||
|
||||
.oi[data-glyph=expand-down]:before { content:'\e060'; }
|
||||
|
||||
.oi[data-glyph=expand-left]:before { content:'\e061'; }
|
||||
|
||||
.oi[data-glyph=expand-right]:before { content:'\e062'; }
|
||||
|
||||
.oi[data-glyph=expand-up]:before { content:'\e063'; }
|
||||
|
||||
.oi[data-glyph=external-link]:before { content:'\e064'; }
|
||||
|
||||
.oi[data-glyph=eye]:before { content:'\e065'; }
|
||||
|
||||
.oi[data-glyph=eyedropper]:before { content:'\e066'; }
|
||||
|
||||
.oi[data-glyph=file]:before { content:'\e067'; }
|
||||
|
||||
.oi[data-glyph=fire]:before { content:'\e068'; }
|
||||
|
||||
.oi[data-glyph=flag]:before { content:'\e069'; }
|
||||
|
||||
.oi[data-glyph=flash]:before { content:'\e06a'; }
|
||||
|
||||
.oi[data-glyph=folder]:before { content:'\e06b'; }
|
||||
|
||||
.oi[data-glyph=fork]:before { content:'\e06c'; }
|
||||
|
||||
.oi[data-glyph=fullscreen-enter]:before { content:'\e06d'; }
|
||||
|
||||
.oi[data-glyph=fullscreen-exit]:before { content:'\e06e'; }
|
||||
|
||||
.oi[data-glyph=globe]:before { content:'\e06f'; }
|
||||
|
||||
.oi[data-glyph=graph]:before { content:'\e070'; }
|
||||
|
||||
.oi[data-glyph=grid-four-up]:before { content:'\e071'; }
|
||||
|
||||
.oi[data-glyph=grid-three-up]:before { content:'\e072'; }
|
||||
|
||||
.oi[data-glyph=grid-two-up]:before { content:'\e073'; }
|
||||
|
||||
.oi[data-glyph=hard-drive]:before { content:'\e074'; }
|
||||
|
||||
.oi[data-glyph=header]:before { content:'\e075'; }
|
||||
|
||||
.oi[data-glyph=headphones]:before { content:'\e076'; }
|
||||
|
||||
.oi[data-glyph=heart]:before { content:'\e077'; }
|
||||
|
||||
.oi[data-glyph=home]:before { content:'\e078'; }
|
||||
|
||||
.oi[data-glyph=image]:before { content:'\e079'; }
|
||||
|
||||
.oi[data-glyph=inbox]:before { content:'\e07a'; }
|
||||
|
||||
.oi[data-glyph=infinity]:before { content:'\e07b'; }
|
||||
|
||||
.oi[data-glyph=info]:before { content:'\e07c'; }
|
||||
|
||||
.oi[data-glyph=italic]:before { content:'\e07d'; }
|
||||
|
||||
.oi[data-glyph=justify-center]:before { content:'\e07e'; }
|
||||
|
||||
.oi[data-glyph=justify-left]:before { content:'\e07f'; }
|
||||
|
||||
.oi[data-glyph=justify-right]:before { content:'\e080'; }
|
||||
|
||||
.oi[data-glyph=key]:before { content:'\e081'; }
|
||||
|
||||
.oi[data-glyph=laptop]:before { content:'\e082'; }
|
||||
|
||||
.oi[data-glyph=layers]:before { content:'\e083'; }
|
||||
|
||||
.oi[data-glyph=lightbulb]:before { content:'\e084'; }
|
||||
|
||||
.oi[data-glyph=link-broken]:before { content:'\e085'; }
|
||||
|
||||
.oi[data-glyph=link-intact]:before { content:'\e086'; }
|
||||
|
||||
.oi[data-glyph=list-rich]:before { content:'\e087'; }
|
||||
|
||||
.oi[data-glyph=list]:before { content:'\e088'; }
|
||||
|
||||
.oi[data-glyph=location]:before { content:'\e089'; }
|
||||
|
||||
.oi[data-glyph=lock-locked]:before { content:'\e08a'; }
|
||||
|
||||
.oi[data-glyph=lock-unlocked]:before { content:'\e08b'; }
|
||||
|
||||
.oi[data-glyph=loop-circular]:before { content:'\e08c'; }
|
||||
|
||||
.oi[data-glyph=loop-square]:before { content:'\e08d'; }
|
||||
|
||||
.oi[data-glyph=loop]:before { content:'\e08e'; }
|
||||
|
||||
.oi[data-glyph=magnifying-glass]:before { content:'\e08f'; }
|
||||
|
||||
.oi[data-glyph=map-marker]:before { content:'\e090'; }
|
||||
|
||||
.oi[data-glyph=map]:before { content:'\e091'; }
|
||||
|
||||
.oi[data-glyph=media-pause]:before { content:'\e092'; }
|
||||
|
||||
.oi[data-glyph=media-play]:before { content:'\e093'; }
|
||||
|
||||
.oi[data-glyph=media-record]:before { content:'\e094'; }
|
||||
|
||||
.oi[data-glyph=media-skip-backward]:before { content:'\e095'; }
|
||||
|
||||
.oi[data-glyph=media-skip-forward]:before { content:'\e096'; }
|
||||
|
||||
.oi[data-glyph=media-step-backward]:before { content:'\e097'; }
|
||||
|
||||
.oi[data-glyph=media-step-forward]:before { content:'\e098'; }
|
||||
|
||||
.oi[data-glyph=media-stop]:before { content:'\e099'; }
|
||||
|
||||
.oi[data-glyph=medical-cross]:before { content:'\e09a'; }
|
||||
|
||||
.oi[data-glyph=menu]:before { content:'\e09b'; }
|
||||
|
||||
.oi[data-glyph=microphone]:before { content:'\e09c'; }
|
||||
|
||||
.oi[data-glyph=minus]:before { content:'\e09d'; }
|
||||
|
||||
.oi[data-glyph=monitor]:before { content:'\e09e'; }
|
||||
|
||||
.oi[data-glyph=moon]:before { content:'\e09f'; }
|
||||
|
||||
.oi[data-glyph=move]:before { content:'\e0a0'; }
|
||||
|
||||
.oi[data-glyph=musical-note]:before { content:'\e0a1'; }
|
||||
|
||||
.oi[data-glyph=paperclip]:before { content:'\e0a2'; }
|
||||
|
||||
.oi[data-glyph=pencil]:before { content:'\e0a3'; }
|
||||
|
||||
.oi[data-glyph=people]:before { content:'\e0a4'; }
|
||||
|
||||
.oi[data-glyph=person]:before { content:'\e0a5'; }
|
||||
|
||||
.oi[data-glyph=phone]:before { content:'\e0a6'; }
|
||||
|
||||
.oi[data-glyph=pie-chart]:before { content:'\e0a7'; }
|
||||
|
||||
.oi[data-glyph=pin]:before { content:'\e0a8'; }
|
||||
|
||||
.oi[data-glyph=play-circle]:before { content:'\e0a9'; }
|
||||
|
||||
.oi[data-glyph=plus]:before { content:'\e0aa'; }
|
||||
|
||||
.oi[data-glyph=power-standby]:before { content:'\e0ab'; }
|
||||
|
||||
.oi[data-glyph=print]:before { content:'\e0ac'; }
|
||||
|
||||
.oi[data-glyph=project]:before { content:'\e0ad'; }
|
||||
|
||||
.oi[data-glyph=pulse]:before { content:'\e0ae'; }
|
||||
|
||||
.oi[data-glyph=puzzle-piece]:before { content:'\e0af'; }
|
||||
|
||||
.oi[data-glyph=question-mark]:before { content:'\e0b0'; }
|
||||
|
||||
.oi[data-glyph=rain]:before { content:'\e0b1'; }
|
||||
|
||||
.oi[data-glyph=random]:before { content:'\e0b2'; }
|
||||
|
||||
.oi[data-glyph=reload]:before { content:'\e0b3'; }
|
||||
|
||||
.oi[data-glyph=resize-both]:before { content:'\e0b4'; }
|
||||
|
||||
.oi[data-glyph=resize-height]:before { content:'\e0b5'; }
|
||||
|
||||
.oi[data-glyph=resize-width]:before { content:'\e0b6'; }
|
||||
|
||||
.oi[data-glyph=rss-alt]:before { content:'\e0b7'; }
|
||||
|
||||
.oi[data-glyph=rss]:before { content:'\e0b8'; }
|
||||
|
||||
.oi[data-glyph=script]:before { content:'\e0b9'; }
|
||||
|
||||
.oi[data-glyph=share-boxed]:before { content:'\e0ba'; }
|
||||
|
||||
.oi[data-glyph=share]:before { content:'\e0bb'; }
|
||||
|
||||
.oi[data-glyph=shield]:before { content:'\e0bc'; }
|
||||
|
||||
.oi[data-glyph=signal]:before { content:'\e0bd'; }
|
||||
|
||||
.oi[data-glyph=signpost]:before { content:'\e0be'; }
|
||||
|
||||
.oi[data-glyph=sort-ascending]:before { content:'\e0bf'; }
|
||||
|
||||
.oi[data-glyph=sort-descending]:before { content:'\e0c0'; }
|
||||
|
||||
.oi[data-glyph=spreadsheet]:before { content:'\e0c1'; }
|
||||
|
||||
.oi[data-glyph=star]:before { content:'\e0c2'; }
|
||||
|
||||
.oi[data-glyph=sun]:before { content:'\e0c3'; }
|
||||
|
||||
.oi[data-glyph=tablet]:before { content:'\e0c4'; }
|
||||
|
||||
.oi[data-glyph=tag]:before { content:'\e0c5'; }
|
||||
|
||||
.oi[data-glyph=tags]:before { content:'\e0c6'; }
|
||||
|
||||
.oi[data-glyph=target]:before { content:'\e0c7'; }
|
||||
|
||||
.oi[data-glyph=task]:before { content:'\e0c8'; }
|
||||
|
||||
.oi[data-glyph=terminal]:before { content:'\e0c9'; }
|
||||
|
||||
.oi[data-glyph=text]:before { content:'\e0ca'; }
|
||||
|
||||
.oi[data-glyph=thumb-down]:before { content:'\e0cb'; }
|
||||
|
||||
.oi[data-glyph=thumb-up]:before { content:'\e0cc'; }
|
||||
|
||||
.oi[data-glyph=timer]:before { content:'\e0cd'; }
|
||||
|
||||
.oi[data-glyph=transfer]:before { content:'\e0ce'; }
|
||||
|
||||
.oi[data-glyph=trash]:before { content:'\e0cf'; }
|
||||
|
||||
.oi[data-glyph=underline]:before { content:'\e0d0'; }
|
||||
|
||||
.oi[data-glyph=vertical-align-bottom]:before { content:'\e0d1'; }
|
||||
|
||||
.oi[data-glyph=vertical-align-center]:before { content:'\e0d2'; }
|
||||
|
||||
.oi[data-glyph=vertical-align-top]:before { content:'\e0d3'; }
|
||||
|
||||
.oi[data-glyph=video]:before { content:'\e0d4'; }
|
||||
|
||||
.oi[data-glyph=volume-high]:before { content:'\e0d5'; }
|
||||
|
||||
.oi[data-glyph=volume-low]:before { content:'\e0d6'; }
|
||||
|
||||
.oi[data-glyph=volume-off]:before { content:'\e0d7'; }
|
||||
|
||||
.oi[data-glyph=warning]:before { content:'\e0d8'; }
|
||||
|
||||
.oi[data-glyph=wifi]:before { content:'\e0d9'; }
|
||||
|
||||
.oi[data-glyph=wrench]:before { content:'\e0da'; }
|
||||
|
||||
.oi[data-glyph=x]:before { content:'\e0db'; }
|
||||
|
||||
.oi[data-glyph=yen]:before { content:'\e0dc'; }
|
||||
|
||||
.oi[data-glyph=zoom-in]:before { content:'\e0dd'; }
|
||||
|
||||
.oi[data-glyph=zoom-out]:before { content:'\e0de'; }
|
962
public/assets/css/open-iconic.less
Normal file
962
public/assets/css/open-iconic.less
Normal file
|
@ -0,0 +1,962 @@
|
|||
@iconic-font-path: '../fonts/';
|
||||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: url('@{iconic-font-path}open-iconic.eot');
|
||||
src: url('@{iconic-font-path}open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('@{iconic-font-path}open-iconic.woff') format('woff'), url('@{iconic-font-path}open-iconic.ttf') format('truetype'), url('@{iconic-font-path}open-iconic.otf') format('opentype'), url('@{iconic-font-path}open-iconic.svg#iconic-sm') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace {
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oi[data-glyph] {
|
||||
&:before {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
font-family: 'Icons';
|
||||
display: inline-block;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
&:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
&.oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
&.oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
&.oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
&.oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.oi[data-glyph=account-login]:before {
|
||||
content: '\e000';
|
||||
}
|
||||
|
||||
.oi[data-glyph=account-logout]:before {
|
||||
content: '\e001';
|
||||
}
|
||||
|
||||
.oi[data-glyph=action-redo]:before {
|
||||
content: '\e002';
|
||||
}
|
||||
|
||||
.oi[data-glyph=action-undo]:before {
|
||||
content: '\e003';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-center]:before {
|
||||
content: '\e004';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-left]:before {
|
||||
content: '\e005';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-right]:before {
|
||||
content: '\e006';
|
||||
}
|
||||
|
||||
.oi[data-glyph=aperture]:before {
|
||||
content: '\e007';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-bottom]:before {
|
||||
content: '\e008';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-bottom]:before {
|
||||
content: '\e009';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-left]:before {
|
||||
content: '\e00a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-right]:before {
|
||||
content: '\e00b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-top]:before {
|
||||
content: '\e00c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-left]:before {
|
||||
content: '\e00d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-right]:before {
|
||||
content: '\e00e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-bottom]:before {
|
||||
content: '\e00f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-left]:before {
|
||||
content: '\e010';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-right]:before {
|
||||
content: '\e011';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-top]:before {
|
||||
content: '\e012';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-top]:before {
|
||||
content: '\e013';
|
||||
}
|
||||
|
||||
.oi[data-glyph=audio-spectrum]:before {
|
||||
content: '\e014';
|
||||
}
|
||||
|
||||
.oi[data-glyph=audio]:before {
|
||||
content: '\e015';
|
||||
}
|
||||
|
||||
.oi[data-glyph=badge]:before {
|
||||
content: '\e016';
|
||||
}
|
||||
|
||||
.oi[data-glyph=ban]:before {
|
||||
content: '\e017';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bar-chart]:before {
|
||||
content: '\e018';
|
||||
}
|
||||
|
||||
.oi[data-glyph=basket]:before {
|
||||
content: '\e019';
|
||||
}
|
||||
|
||||
.oi[data-glyph=battery-empty]:before {
|
||||
content: '\e01a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=battery-full]:before {
|
||||
content: '\e01b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=beaker]:before {
|
||||
content: '\e01c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bell]:before {
|
||||
content: '\e01d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bluetooth]:before {
|
||||
content: '\e01e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bold]:before {
|
||||
content: '\e01f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bolt]:before {
|
||||
content: '\e020';
|
||||
}
|
||||
|
||||
.oi[data-glyph=book]:before {
|
||||
content: '\e021';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bookmark]:before {
|
||||
content: '\e022';
|
||||
}
|
||||
|
||||
.oi[data-glyph=box]:before {
|
||||
content: '\e023';
|
||||
}
|
||||
|
||||
.oi[data-glyph=briefcase]:before {
|
||||
content: '\e024';
|
||||
}
|
||||
|
||||
.oi[data-glyph=british-pound]:before {
|
||||
content: '\e025';
|
||||
}
|
||||
|
||||
.oi[data-glyph=browser]:before {
|
||||
content: '\e026';
|
||||
}
|
||||
|
||||
.oi[data-glyph=brush]:before {
|
||||
content: '\e027';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bug]:before {
|
||||
content: '\e028';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bullhorn]:before {
|
||||
content: '\e029';
|
||||
}
|
||||
|
||||
.oi[data-glyph=calculator]:before {
|
||||
content: '\e02a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=calendar]:before {
|
||||
content: '\e02b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=camera-slr]:before {
|
||||
content: '\e02c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-bottom]:before {
|
||||
content: '\e02d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-left]:before {
|
||||
content: '\e02e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-right]:before {
|
||||
content: '\e02f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-top]:before {
|
||||
content: '\e030';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cart]:before {
|
||||
content: '\e031';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chat]:before {
|
||||
content: '\e032';
|
||||
}
|
||||
|
||||
.oi[data-glyph=check]:before {
|
||||
content: '\e033';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-bottom]:before {
|
||||
content: '\e034';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-left]:before {
|
||||
content: '\e035';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-right]:before {
|
||||
content: '\e036';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-top]:before {
|
||||
content: '\e037';
|
||||
}
|
||||
|
||||
.oi[data-glyph=circle-check]:before {
|
||||
content: '\e038';
|
||||
}
|
||||
|
||||
.oi[data-glyph=circle-x]:before {
|
||||
content: '\e039';
|
||||
}
|
||||
|
||||
.oi[data-glyph=clipboard]:before {
|
||||
content: '\e03a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=clock]:before {
|
||||
content: '\e03b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud-download]:before {
|
||||
content: '\e03c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud-upload]:before {
|
||||
content: '\e03d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud]:before {
|
||||
content: '\e03e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloudy]:before {
|
||||
content: '\e03f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=code]:before {
|
||||
content: '\e040';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cog]:before {
|
||||
content: '\e041';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-down]:before {
|
||||
content: '\e042';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-left]:before {
|
||||
content: '\e043';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-right]:before {
|
||||
content: '\e044';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-up]:before {
|
||||
content: '\e045';
|
||||
}
|
||||
|
||||
.oi[data-glyph=command]:before {
|
||||
content: '\e046';
|
||||
}
|
||||
|
||||
.oi[data-glyph=comment-square]:before {
|
||||
content: '\e047';
|
||||
}
|
||||
|
||||
.oi[data-glyph=compass]:before {
|
||||
content: '\e048';
|
||||
}
|
||||
|
||||
.oi[data-glyph=contrast]:before {
|
||||
content: '\e049';
|
||||
}
|
||||
|
||||
.oi[data-glyph=copywriting]:before {
|
||||
content: '\e04a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=credit-card]:before {
|
||||
content: '\e04b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=crop]:before {
|
||||
content: '\e04c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dashboard]:before {
|
||||
content: '\e04d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=data-transfer-download]:before {
|
||||
content: '\e04e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=data-transfer-upload]:before {
|
||||
content: '\e04f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=delete]:before {
|
||||
content: '\e050';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dial]:before {
|
||||
content: '\e051';
|
||||
}
|
||||
|
||||
.oi[data-glyph=document]:before {
|
||||
content: '\e052';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dollar]:before {
|
||||
content: '\e053';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-sans-left]:before {
|
||||
content: '\e054';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-sans-right]:before {
|
||||
content: '\e055';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-serif-left]:before {
|
||||
content: '\e056';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-serif-right]:before {
|
||||
content: '\e057';
|
||||
}
|
||||
|
||||
.oi[data-glyph=droplet]:before {
|
||||
content: '\e058';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eject]:before {
|
||||
content: '\e059';
|
||||
}
|
||||
|
||||
.oi[data-glyph=elevator]:before {
|
||||
content: '\e05a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=ellipses]:before {
|
||||
content: '\e05b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=envelope-closed]:before {
|
||||
content: '\e05c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=envelope-open]:before {
|
||||
content: '\e05d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=euro]:before {
|
||||
content: '\e05e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=excerpt]:before {
|
||||
content: '\e05f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-down]:before {
|
||||
content: '\e060';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-left]:before {
|
||||
content: '\e061';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-right]:before {
|
||||
content: '\e062';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-up]:before {
|
||||
content: '\e063';
|
||||
}
|
||||
|
||||
.oi[data-glyph=external-link]:before {
|
||||
content: '\e064';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eye]:before {
|
||||
content: '\e065';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eyedropper]:before {
|
||||
content: '\e066';
|
||||
}
|
||||
|
||||
.oi[data-glyph=file]:before {
|
||||
content: '\e067';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fire]:before {
|
||||
content: '\e068';
|
||||
}
|
||||
|
||||
.oi[data-glyph=flag]:before {
|
||||
content: '\e069';
|
||||
}
|
||||
|
||||
.oi[data-glyph=flash]:before {
|
||||
content: '\e06a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=folder]:before {
|
||||
content: '\e06b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fork]:before {
|
||||
content: '\e06c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fullscreen-enter]:before {
|
||||
content: '\e06d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fullscreen-exit]:before {
|
||||
content: '\e06e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=globe]:before {
|
||||
content: '\e06f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=graph]:before {
|
||||
content: '\e070';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-four-up]:before {
|
||||
content: '\e071';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-three-up]:before {
|
||||
content: '\e072';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-two-up]:before {
|
||||
content: '\e073';
|
||||
}
|
||||
|
||||
.oi[data-glyph=hard-drive]:before {
|
||||
content: '\e074';
|
||||
}
|
||||
|
||||
.oi[data-glyph=header]:before {
|
||||
content: '\e075';
|
||||
}
|
||||
|
||||
.oi[data-glyph=headphones]:before {
|
||||
content: '\e076';
|
||||
}
|
||||
|
||||
.oi[data-glyph=heart]:before {
|
||||
content: '\e077';
|
||||
}
|
||||
|
||||
.oi[data-glyph=home]:before {
|
||||
content: '\e078';
|
||||
}
|
||||
|
||||
.oi[data-glyph=image]:before {
|
||||
content: '\e079';
|
||||
}
|
||||
|
||||
.oi[data-glyph=inbox]:before {
|
||||
content: '\e07a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=infinity]:before {
|
||||
content: '\e07b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=info]:before {
|
||||
content: '\e07c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=italic]:before {
|
||||
content: '\e07d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-center]:before {
|
||||
content: '\e07e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-left]:before {
|
||||
content: '\e07f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-right]:before {
|
||||
content: '\e080';
|
||||
}
|
||||
|
||||
.oi[data-glyph=key]:before {
|
||||
content: '\e081';
|
||||
}
|
||||
|
||||
.oi[data-glyph=laptop]:before {
|
||||
content: '\e082';
|
||||
}
|
||||
|
||||
.oi[data-glyph=layers]:before {
|
||||
content: '\e083';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lightbulb]:before {
|
||||
content: '\e084';
|
||||
}
|
||||
|
||||
.oi[data-glyph=link-broken]:before {
|
||||
content: '\e085';
|
||||
}
|
||||
|
||||
.oi[data-glyph=link-intact]:before {
|
||||
content: '\e086';
|
||||
}
|
||||
|
||||
.oi[data-glyph=list-rich]:before {
|
||||
content: '\e087';
|
||||
}
|
||||
|
||||
.oi[data-glyph=list]:before {
|
||||
content: '\e088';
|
||||
}
|
||||
|
||||
.oi[data-glyph=location]:before {
|
||||
content: '\e089';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lock-locked]:before {
|
||||
content: '\e08a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lock-unlocked]:before {
|
||||
content: '\e08b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop-circular]:before {
|
||||
content: '\e08c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop-square]:before {
|
||||
content: '\e08d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop]:before {
|
||||
content: '\e08e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=magnifying-glass]:before {
|
||||
content: '\e08f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=map-marker]:before {
|
||||
content: '\e090';
|
||||
}
|
||||
|
||||
.oi[data-glyph=map]:before {
|
||||
content: '\e091';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-pause]:before {
|
||||
content: '\e092';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-play]:before {
|
||||
content: '\e093';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-record]:before {
|
||||
content: '\e094';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-skip-backward]:before {
|
||||
content: '\e095';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-skip-forward]:before {
|
||||
content: '\e096';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-step-backward]:before {
|
||||
content: '\e097';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-step-forward]:before {
|
||||
content: '\e098';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-stop]:before {
|
||||
content: '\e099';
|
||||
}
|
||||
|
||||
.oi[data-glyph=medical-cross]:before {
|
||||
content: '\e09a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=menu]:before {
|
||||
content: '\e09b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=microphone]:before {
|
||||
content: '\e09c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=minus]:before {
|
||||
content: '\e09d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=monitor]:before {
|
||||
content: '\e09e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=moon]:before {
|
||||
content: '\e09f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=move]:before {
|
||||
content: '\e0a0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=musical-note]:before {
|
||||
content: '\e0a1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=paperclip]:before {
|
||||
content: '\e0a2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pencil]:before {
|
||||
content: '\e0a3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=people]:before {
|
||||
content: '\e0a4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=person]:before {
|
||||
content: '\e0a5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=phone]:before {
|
||||
content: '\e0a6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pie-chart]:before {
|
||||
content: '\e0a7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pin]:before {
|
||||
content: '\e0a8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=play-circle]:before {
|
||||
content: '\e0a9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=plus]:before {
|
||||
content: '\e0aa';
|
||||
}
|
||||
|
||||
.oi[data-glyph=power-standby]:before {
|
||||
content: '\e0ab';
|
||||
}
|
||||
|
||||
.oi[data-glyph=print]:before {
|
||||
content: '\e0ac';
|
||||
}
|
||||
|
||||
.oi[data-glyph=project]:before {
|
||||
content: '\e0ad';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pulse]:before {
|
||||
content: '\e0ae';
|
||||
}
|
||||
|
||||
.oi[data-glyph=puzzle-piece]:before {
|
||||
content: '\e0af';
|
||||
}
|
||||
|
||||
.oi[data-glyph=question-mark]:before {
|
||||
content: '\e0b0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rain]:before {
|
||||
content: '\e0b1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=random]:before {
|
||||
content: '\e0b2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=reload]:before {
|
||||
content: '\e0b3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-both]:before {
|
||||
content: '\e0b4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-height]:before {
|
||||
content: '\e0b5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-width]:before {
|
||||
content: '\e0b6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rss-alt]:before {
|
||||
content: '\e0b7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rss]:before {
|
||||
content: '\e0b8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=script]:before {
|
||||
content: '\e0b9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=share-boxed]:before {
|
||||
content: '\e0ba';
|
||||
}
|
||||
|
||||
.oi[data-glyph=share]:before {
|
||||
content: '\e0bb';
|
||||
}
|
||||
|
||||
.oi[data-glyph=shield]:before {
|
||||
content: '\e0bc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=signal]:before {
|
||||
content: '\e0bd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=signpost]:before {
|
||||
content: '\e0be';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sort-ascending]:before {
|
||||
content: '\e0bf';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sort-descending]:before {
|
||||
content: '\e0c0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=spreadsheet]:before {
|
||||
content: '\e0c1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=star]:before {
|
||||
content: '\e0c2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sun]:before {
|
||||
content: '\e0c3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tablet]:before {
|
||||
content: '\e0c4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tag]:before {
|
||||
content: '\e0c5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tags]:before {
|
||||
content: '\e0c6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=target]:before {
|
||||
content: '\e0c7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=task]:before {
|
||||
content: '\e0c8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=terminal]:before {
|
||||
content: '\e0c9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=text]:before {
|
||||
content: '\e0ca';
|
||||
}
|
||||
|
||||
.oi[data-glyph=thumb-down]:before {
|
||||
content: '\e0cb';
|
||||
}
|
||||
|
||||
.oi[data-glyph=thumb-up]:before {
|
||||
content: '\e0cc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=timer]:before {
|
||||
content: '\e0cd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=transfer]:before {
|
||||
content: '\e0ce';
|
||||
}
|
||||
|
||||
.oi[data-glyph=trash]:before {
|
||||
content: '\e0cf';
|
||||
}
|
||||
|
||||
.oi[data-glyph=underline]:before {
|
||||
content: '\e0d0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-bottom]:before {
|
||||
content: '\e0d1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-center]:before {
|
||||
content: '\e0d2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-top]:before {
|
||||
content: '\e0d3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=video]:before {
|
||||
content: '\e0d4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-high]:before {
|
||||
content: '\e0d5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-low]:before {
|
||||
content: '\e0d6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-off]:before {
|
||||
content: '\e0d7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=warning]:before {
|
||||
content: '\e0d8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=wifi]:before {
|
||||
content: '\e0d9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=wrench]:before {
|
||||
content: '\e0da';
|
||||
}
|
||||
|
||||
.oi[data-glyph=x]:before {
|
||||
content: '\e0db';
|
||||
}
|
||||
|
||||
.oi[data-glyph=yen]:before {
|
||||
content: '\e0dc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=zoom-in]:before {
|
||||
content: '\e0dd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=zoom-out]:before {
|
||||
content: '\e0de';
|
||||
}
|
1
public/assets/css/open-iconic.min.css
vendored
Normal file
1
public/assets/css/open-iconic.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
963
public/assets/css/open-iconic.scss
Normal file
963
public/assets/css/open-iconic.scss
Normal file
|
@ -0,0 +1,963 @@
|
|||
$iconic-font-path: '../fonts/' !default;
|
||||
|
||||
@font-face {
|
||||
font-family: 'Icons';
|
||||
src: url('#{$iconic-font-path}open-iconic.eot');
|
||||
src: url('#{$iconic-font-path}open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('#{$iconic-font-path}open-iconic.woff') format('woff'), url('#{$iconic-font-path}open-iconic.ttf') format('truetype'), url('#{$iconic-font-path}open-iconic.otf') format('opentype'), url('#{$iconic-font-path}open-iconic.svg#iconic-sm') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace {
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.oi[data-glyph].oi-text-replace:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oi[data-glyph] {
|
||||
&:before {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
font-family: 'Icons';
|
||||
display: inline-block;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
&:empty:before {
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
&.oi-align-left:before {
|
||||
text-align: left;
|
||||
}
|
||||
&.oi-align-right:before {
|
||||
text-align: right;
|
||||
}
|
||||
&.oi-align-center:before {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal:before {
|
||||
-webkit-transform: scale(-1, 1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
&.oi-flip-vertical:before {
|
||||
-webkit-transform: scale(1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
&.oi-flip-horizontal-vertical:before {
|
||||
-webkit-transform: scale(-1, -1);
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.oi[data-glyph=account-login]:before {
|
||||
content: '\e000';
|
||||
}
|
||||
|
||||
.oi[data-glyph=account-logout]:before {
|
||||
content: '\e001';
|
||||
}
|
||||
|
||||
.oi[data-glyph=action-redo]:before {
|
||||
content: '\e002';
|
||||
}
|
||||
|
||||
.oi[data-glyph=action-undo]:before {
|
||||
content: '\e003';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-center]:before {
|
||||
content: '\e004';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-left]:before {
|
||||
content: '\e005';
|
||||
}
|
||||
|
||||
.oi[data-glyph=align-right]:before {
|
||||
content: '\e006';
|
||||
}
|
||||
|
||||
.oi[data-glyph=aperture]:before {
|
||||
content: '\e007';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-bottom]:before {
|
||||
content: '\e008';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-bottom]:before {
|
||||
content: '\e009';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-left]:before {
|
||||
content: '\e00a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-right]:before {
|
||||
content: '\e00b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-circle-top]:before {
|
||||
content: '\e00c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-left]:before {
|
||||
content: '\e00d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-right]:before {
|
||||
content: '\e00e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-bottom]:before {
|
||||
content: '\e00f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-left]:before {
|
||||
content: '\e010';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-right]:before {
|
||||
content: '\e011';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-thick-top]:before {
|
||||
content: '\e012';
|
||||
}
|
||||
|
||||
.oi[data-glyph=arrow-top]:before {
|
||||
content: '\e013';
|
||||
}
|
||||
|
||||
.oi[data-glyph=audio-spectrum]:before {
|
||||
content: '\e014';
|
||||
}
|
||||
|
||||
.oi[data-glyph=audio]:before {
|
||||
content: '\e015';
|
||||
}
|
||||
|
||||
.oi[data-glyph=badge]:before {
|
||||
content: '\e016';
|
||||
}
|
||||
|
||||
.oi[data-glyph=ban]:before {
|
||||
content: '\e017';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bar-chart]:before {
|
||||
content: '\e018';
|
||||
}
|
||||
|
||||
.oi[data-glyph=basket]:before {
|
||||
content: '\e019';
|
||||
}
|
||||
|
||||
.oi[data-glyph=battery-empty]:before {
|
||||
content: '\e01a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=battery-full]:before {
|
||||
content: '\e01b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=beaker]:before {
|
||||
content: '\e01c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bell]:before {
|
||||
content: '\e01d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bluetooth]:before {
|
||||
content: '\e01e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bold]:before {
|
||||
content: '\e01f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bolt]:before {
|
||||
content: '\e020';
|
||||
}
|
||||
|
||||
.oi[data-glyph=book]:before {
|
||||
content: '\e021';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bookmark]:before {
|
||||
content: '\e022';
|
||||
}
|
||||
|
||||
.oi[data-glyph=box]:before {
|
||||
content: '\e023';
|
||||
}
|
||||
|
||||
.oi[data-glyph=briefcase]:before {
|
||||
content: '\e024';
|
||||
}
|
||||
|
||||
.oi[data-glyph=british-pound]:before {
|
||||
content: '\e025';
|
||||
}
|
||||
|
||||
.oi[data-glyph=browser]:before {
|
||||
content: '\e026';
|
||||
}
|
||||
|
||||
.oi[data-glyph=brush]:before {
|
||||
content: '\e027';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bug]:before {
|
||||
content: '\e028';
|
||||
}
|
||||
|
||||
.oi[data-glyph=bullhorn]:before {
|
||||
content: '\e029';
|
||||
}
|
||||
|
||||
.oi[data-glyph=calculator]:before {
|
||||
content: '\e02a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=calendar]:before {
|
||||
content: '\e02b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=camera-slr]:before {
|
||||
content: '\e02c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-bottom]:before {
|
||||
content: '\e02d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-left]:before {
|
||||
content: '\e02e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-right]:before {
|
||||
content: '\e02f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=caret-top]:before {
|
||||
content: '\e030';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cart]:before {
|
||||
content: '\e031';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chat]:before {
|
||||
content: '\e032';
|
||||
}
|
||||
|
||||
.oi[data-glyph=check]:before {
|
||||
content: '\e033';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-bottom]:before {
|
||||
content: '\e034';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-left]:before {
|
||||
content: '\e035';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-right]:before {
|
||||
content: '\e036';
|
||||
}
|
||||
|
||||
.oi[data-glyph=chevron-top]:before {
|
||||
content: '\e037';
|
||||
}
|
||||
|
||||
.oi[data-glyph=circle-check]:before {
|
||||
content: '\e038';
|
||||
}
|
||||
|
||||
.oi[data-glyph=circle-x]:before {
|
||||
content: '\e039';
|
||||
}
|
||||
|
||||
.oi[data-glyph=clipboard]:before {
|
||||
content: '\e03a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=clock]:before {
|
||||
content: '\e03b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud-download]:before {
|
||||
content: '\e03c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud-upload]:before {
|
||||
content: '\e03d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloud]:before {
|
||||
content: '\e03e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cloudy]:before {
|
||||
content: '\e03f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=code]:before {
|
||||
content: '\e040';
|
||||
}
|
||||
|
||||
.oi[data-glyph=cog]:before {
|
||||
content: '\e041';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-down]:before {
|
||||
content: '\e042';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-left]:before {
|
||||
content: '\e043';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-right]:before {
|
||||
content: '\e044';
|
||||
}
|
||||
|
||||
.oi[data-glyph=collapse-up]:before {
|
||||
content: '\e045';
|
||||
}
|
||||
|
||||
.oi[data-glyph=command]:before {
|
||||
content: '\e046';
|
||||
}
|
||||
|
||||
.oi[data-glyph=comment-square]:before {
|
||||
content: '\e047';
|
||||
}
|
||||
|
||||
.oi[data-glyph=compass]:before {
|
||||
content: '\e048';
|
||||
}
|
||||
|
||||
.oi[data-glyph=contrast]:before {
|
||||
content: '\e049';
|
||||
}
|
||||
|
||||
.oi[data-glyph=copywriting]:before {
|
||||
content: '\e04a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=credit-card]:before {
|
||||
content: '\e04b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=crop]:before {
|
||||
content: '\e04c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dashboard]:before {
|
||||
content: '\e04d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=data-transfer-download]:before {
|
||||
content: '\e04e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=data-transfer-upload]:before {
|
||||
content: '\e04f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=delete]:before {
|
||||
content: '\e050';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dial]:before {
|
||||
content: '\e051';
|
||||
}
|
||||
|
||||
.oi[data-glyph=document]:before {
|
||||
content: '\e052';
|
||||
}
|
||||
|
||||
.oi[data-glyph=dollar]:before {
|
||||
content: '\e053';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-sans-left]:before {
|
||||
content: '\e054';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-sans-right]:before {
|
||||
content: '\e055';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-serif-left]:before {
|
||||
content: '\e056';
|
||||
}
|
||||
|
||||
.oi[data-glyph=double-quote-serif-right]:before {
|
||||
content: '\e057';
|
||||
}
|
||||
|
||||
.oi[data-glyph=droplet]:before {
|
||||
content: '\e058';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eject]:before {
|
||||
content: '\e059';
|
||||
}
|
||||
|
||||
.oi[data-glyph=elevator]:before {
|
||||
content: '\e05a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=ellipses]:before {
|
||||
content: '\e05b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=envelope-closed]:before {
|
||||
content: '\e05c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=envelope-open]:before {
|
||||
content: '\e05d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=euro]:before {
|
||||
content: '\e05e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=excerpt]:before {
|
||||
content: '\e05f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-down]:before {
|
||||
content: '\e060';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-left]:before {
|
||||
content: '\e061';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-right]:before {
|
||||
content: '\e062';
|
||||
}
|
||||
|
||||
.oi[data-glyph=expand-up]:before {
|
||||
content: '\e063';
|
||||
}
|
||||
|
||||
.oi[data-glyph=external-link]:before {
|
||||
content: '\e064';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eye]:before {
|
||||
content: '\e065';
|
||||
}
|
||||
|
||||
.oi[data-glyph=eyedropper]:before {
|
||||
content: '\e066';
|
||||
}
|
||||
|
||||
.oi[data-glyph=file]:before {
|
||||
content: '\e067';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fire]:before {
|
||||
content: '\e068';
|
||||
}
|
||||
|
||||
.oi[data-glyph=flag]:before {
|
||||
content: '\e069';
|
||||
}
|
||||
|
||||
.oi[data-glyph=flash]:before {
|
||||
content: '\e06a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=folder]:before {
|
||||
content: '\e06b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fork]:before {
|
||||
content: '\e06c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fullscreen-enter]:before {
|
||||
content: '\e06d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=fullscreen-exit]:before {
|
||||
content: '\e06e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=globe]:before {
|
||||
content: '\e06f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=graph]:before {
|
||||
content: '\e070';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-four-up]:before {
|
||||
content: '\e071';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-three-up]:before {
|
||||
content: '\e072';
|
||||
}
|
||||
|
||||
.oi[data-glyph=grid-two-up]:before {
|
||||
content: '\e073';
|
||||
}
|
||||
|
||||
.oi[data-glyph=hard-drive]:before {
|
||||
content: '\e074';
|
||||
}
|
||||
|
||||
.oi[data-glyph=header]:before {
|
||||
content: '\e075';
|
||||
}
|
||||
|
||||
.oi[data-glyph=headphones]:before {
|
||||
content: '\e076';
|
||||
}
|
||||
|
||||
.oi[data-glyph=heart]:before {
|
||||
content: '\e077';
|
||||
}
|
||||
|
||||
.oi[data-glyph=home]:before {
|
||||
content: '\e078';
|
||||
}
|
||||
|
||||
.oi[data-glyph=image]:before {
|
||||
content: '\e079';
|
||||
}
|
||||
|
||||
.oi[data-glyph=inbox]:before {
|
||||
content: '\e07a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=infinity]:before {
|
||||
content: '\e07b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=info]:before {
|
||||
content: '\e07c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=italic]:before {
|
||||
content: '\e07d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-center]:before {
|
||||
content: '\e07e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-left]:before {
|
||||
content: '\e07f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=justify-right]:before {
|
||||
content: '\e080';
|
||||
}
|
||||
|
||||
.oi[data-glyph=key]:before {
|
||||
content: '\e081';
|
||||
}
|
||||
|
||||
.oi[data-glyph=laptop]:before {
|
||||
content: '\e082';
|
||||
}
|
||||
|
||||
.oi[data-glyph=layers]:before {
|
||||
content: '\e083';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lightbulb]:before {
|
||||
content: '\e084';
|
||||
}
|
||||
|
||||
.oi[data-glyph=link-broken]:before {
|
||||
content: '\e085';
|
||||
}
|
||||
|
||||
.oi[data-glyph=link-intact]:before {
|
||||
content: '\e086';
|
||||
}
|
||||
|
||||
.oi[data-glyph=list-rich]:before {
|
||||
content: '\e087';
|
||||
}
|
||||
|
||||
.oi[data-glyph=list]:before {
|
||||
content: '\e088';
|
||||
}
|
||||
|
||||
.oi[data-glyph=location]:before {
|
||||
content: '\e089';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lock-locked]:before {
|
||||
content: '\e08a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=lock-unlocked]:before {
|
||||
content: '\e08b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop-circular]:before {
|
||||
content: '\e08c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop-square]:before {
|
||||
content: '\e08d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=loop]:before {
|
||||
content: '\e08e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=magnifying-glass]:before {
|
||||
content: '\e08f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=map-marker]:before {
|
||||
content: '\e090';
|
||||
}
|
||||
|
||||
.oi[data-glyph=map]:before {
|
||||
content: '\e091';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-pause]:before {
|
||||
content: '\e092';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-play]:before {
|
||||
content: '\e093';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-record]:before {
|
||||
content: '\e094';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-skip-backward]:before {
|
||||
content: '\e095';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-skip-forward]:before {
|
||||
content: '\e096';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-step-backward]:before {
|
||||
content: '\e097';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-step-forward]:before {
|
||||
content: '\e098';
|
||||
}
|
||||
|
||||
.oi[data-glyph=media-stop]:before {
|
||||
content: '\e099';
|
||||
}
|
||||
|
||||
.oi[data-glyph=medical-cross]:before {
|
||||
content: '\e09a';
|
||||
}
|
||||
|
||||
.oi[data-glyph=menu]:before {
|
||||
content: '\e09b';
|
||||
}
|
||||
|
||||
.oi[data-glyph=microphone]:before {
|
||||
content: '\e09c';
|
||||
}
|
||||
|
||||
.oi[data-glyph=minus]:before {
|
||||
content: '\e09d';
|
||||
}
|
||||
|
||||
.oi[data-glyph=monitor]:before {
|
||||
content: '\e09e';
|
||||
}
|
||||
|
||||
.oi[data-glyph=moon]:before {
|
||||
content: '\e09f';
|
||||
}
|
||||
|
||||
.oi[data-glyph=move]:before {
|
||||
content: '\e0a0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=musical-note]:before {
|
||||
content: '\e0a1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=paperclip]:before {
|
||||
content: '\e0a2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pencil]:before {
|
||||
content: '\e0a3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=people]:before {
|
||||
content: '\e0a4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=person]:before {
|
||||
content: '\e0a5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=phone]:before {
|
||||
content: '\e0a6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pie-chart]:before {
|
||||
content: '\e0a7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pin]:before {
|
||||
content: '\e0a8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=play-circle]:before {
|
||||
content: '\e0a9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=plus]:before {
|
||||
content: '\e0aa';
|
||||
}
|
||||
|
||||
.oi[data-glyph=power-standby]:before {
|
||||
content: '\e0ab';
|
||||
}
|
||||
|
||||
.oi[data-glyph=print]:before {
|
||||
content: '\e0ac';
|
||||
}
|
||||
|
||||
.oi[data-glyph=project]:before {
|
||||
content: '\e0ad';
|
||||
}
|
||||
|
||||
.oi[data-glyph=pulse]:before {
|
||||
content: '\e0ae';
|
||||
}
|
||||
|
||||
.oi[data-glyph=puzzle-piece]:before {
|
||||
content: '\e0af';
|
||||
}
|
||||
|
||||
.oi[data-glyph=question-mark]:before {
|
||||
content: '\e0b0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rain]:before {
|
||||
content: '\e0b1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=random]:before {
|
||||
content: '\e0b2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=reload]:before {
|
||||
content: '\e0b3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-both]:before {
|
||||
content: '\e0b4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-height]:before {
|
||||
content: '\e0b5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=resize-width]:before {
|
||||
content: '\e0b6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rss-alt]:before {
|
||||
content: '\e0b7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=rss]:before {
|
||||
content: '\e0b8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=script]:before {
|
||||
content: '\e0b9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=share-boxed]:before {
|
||||
content: '\e0ba';
|
||||
}
|
||||
|
||||
.oi[data-glyph=share]:before {
|
||||
content: '\e0bb';
|
||||
}
|
||||
|
||||
.oi[data-glyph=shield]:before {
|
||||
content: '\e0bc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=signal]:before {
|
||||
content: '\e0bd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=signpost]:before {
|
||||
content: '\e0be';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sort-ascending]:before {
|
||||
content: '\e0bf';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sort-descending]:before {
|
||||
content: '\e0c0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=spreadsheet]:before {
|
||||
content: '\e0c1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=star]:before {
|
||||
content: '\e0c2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=sun]:before {
|
||||
content: '\e0c3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tablet]:before {
|
||||
content: '\e0c4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tag]:before {
|
||||
content: '\e0c5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=tags]:before {
|
||||
content: '\e0c6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=target]:before {
|
||||
content: '\e0c7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=task]:before {
|
||||
content: '\e0c8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=terminal]:before {
|
||||
content: '\e0c9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=text]:before {
|
||||
content: '\e0ca';
|
||||
}
|
||||
|
||||
.oi[data-glyph=thumb-down]:before {
|
||||
content: '\e0cb';
|
||||
}
|
||||
|
||||
.oi[data-glyph=thumb-up]:before {
|
||||
content: '\e0cc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=timer]:before {
|
||||
content: '\e0cd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=transfer]:before {
|
||||
content: '\e0ce';
|
||||
}
|
||||
|
||||
.oi[data-glyph=trash]:before {
|
||||
content: '\e0cf';
|
||||
}
|
||||
|
||||
.oi[data-glyph=underline]:before {
|
||||
content: '\e0d0';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-bottom]:before {
|
||||
content: '\e0d1';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-center]:before {
|
||||
content: '\e0d2';
|
||||
}
|
||||
|
||||
.oi[data-glyph=vertical-align-top]:before {
|
||||
content: '\e0d3';
|
||||
}
|
||||
|
||||
.oi[data-glyph=video]:before {
|
||||
content: '\e0d4';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-high]:before {
|
||||
content: '\e0d5';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-low]:before {
|
||||
content: '\e0d6';
|
||||
}
|
||||
|
||||
.oi[data-glyph=volume-off]:before {
|
||||
content: '\e0d7';
|
||||
}
|
||||
|
||||
.oi[data-glyph=warning]:before {
|
||||
content: '\e0d8';
|
||||
}
|
||||
|
||||
.oi[data-glyph=wifi]:before {
|
||||
content: '\e0d9';
|
||||
}
|
||||
|
||||
.oi[data-glyph=wrench]:before {
|
||||
content: '\e0da';
|
||||
}
|
||||
|
||||
.oi[data-glyph=x]:before {
|
||||
content: '\e0db';
|
||||
}
|
||||
|
||||
.oi[data-glyph=yen]:before {
|
||||
content: '\e0dc';
|
||||
}
|
||||
|
||||
.oi[data-glyph=zoom-in]:before {
|
||||
content: '\e0dd';
|
||||
}
|
||||
|
||||
.oi[data-glyph=zoom-out]:before {
|
||||
content: '\e0de';
|
||||
}
|
||||
|
733
public/assets/css/open-iconic.styl
Normal file
733
public/assets/css/open-iconic.styl
Normal file
|
@ -0,0 +1,733 @@
|
|||
@font-face
|
||||
font-family 'Icons'
|
||||
src url('../fonts/open-iconic.eot')
|
||||
src url('../fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.otf') format('opentype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg')
|
||||
font-weight normal
|
||||
font-style normal
|
||||
|
||||
|
||||
.oi[data-glyph].oi-text-replace
|
||||
font-size 0
|
||||
line-height 0
|
||||
|
||||
.oi[data-glyph].oi-text-replace:before
|
||||
width 1em
|
||||
text-align center
|
||||
|
||||
.oi[data-glyph]
|
||||
&:before
|
||||
position relative
|
||||
top 1px
|
||||
font-family 'Icons'
|
||||
display inline-block
|
||||
speak none
|
||||
line-height 1
|
||||
vertical-align baseline
|
||||
font-weight normal
|
||||
font-style normal
|
||||
-webkit-font-smoothing antialiased
|
||||
-moz-osx-font-smoothing grayscale
|
||||
|
||||
&:empty:before
|
||||
width 1em
|
||||
text-align center
|
||||
box-sizing content-box
|
||||
|
||||
&.oi-align-left:before
|
||||
text-align left
|
||||
|
||||
&.oi-align-right:before
|
||||
text-align right
|
||||
|
||||
&.oi-align-center:before
|
||||
text-align center
|
||||
|
||||
|
||||
&.oi-flip-horizontal:before
|
||||
-webkit-transform scale(-1, 1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(-1, 1)
|
||||
|
||||
|
||||
&.oi-flip-vertical:before
|
||||
-webkit-transform scale(1, -1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(1, -1)
|
||||
|
||||
|
||||
&.oi-flip-horizontal-vertical:before
|
||||
-webkit-transform scale(-1, -1)
|
||||
-ms-transform scale(-1, 1)
|
||||
transform scale(-1, -1)
|
||||
|
||||
|
||||
|
||||
|
||||
.oi[data-glyph=account-login]:before
|
||||
content '\e000'
|
||||
|
||||
.oi[data-glyph=account-logout]:before
|
||||
content '\e001'
|
||||
|
||||
.oi[data-glyph=action-redo]:before
|
||||
content '\e002'
|
||||
|
||||
.oi[data-glyph=action-undo]:before
|
||||
content '\e003'
|
||||
|
||||
.oi[data-glyph=align-center]:before
|
||||
content '\e004'
|
||||
|
||||
.oi[data-glyph=align-left]:before
|
||||
content '\e005'
|
||||
|
||||
.oi[data-glyph=align-right]:before
|
||||
content '\e006'
|
||||
|
||||
.oi[data-glyph=aperture]:before
|
||||
content '\e007'
|
||||
|
||||
.oi[data-glyph=arrow-bottom]:before
|
||||
content '\e008'
|
||||
|
||||
.oi[data-glyph=arrow-circle-bottom]:before
|
||||
content '\e009'
|
||||
|
||||
.oi[data-glyph=arrow-circle-left]:before
|
||||
content '\e00a'
|
||||
|
||||
.oi[data-glyph=arrow-circle-right]:before
|
||||
content '\e00b'
|
||||
|
||||
.oi[data-glyph=arrow-circle-top]:before
|
||||
content '\e00c'
|
||||
|
||||
.oi[data-glyph=arrow-left]:before
|
||||
content '\e00d'
|
||||
|
||||
.oi[data-glyph=arrow-right]:before
|
||||
content '\e00e'
|
||||
|
||||
.oi[data-glyph=arrow-thick-bottom]:before
|
||||
content '\e00f'
|
||||
|
||||
.oi[data-glyph=arrow-thick-left]:before
|
||||
content '\e010'
|
||||
|
||||
.oi[data-glyph=arrow-thick-right]:before
|
||||
content '\e011'
|
||||
|
||||
.oi[data-glyph=arrow-thick-top]:before
|
||||
content '\e012'
|
||||
|
||||
.oi[data-glyph=arrow-top]:before
|
||||
content '\e013'
|
||||
|
||||
.oi[data-glyph=audio-spectrum]:before
|
||||
content '\e014'
|
||||
|
||||
.oi[data-glyph=audio]:before
|
||||
content '\e015'
|
||||
|
||||
.oi[data-glyph=badge]:before
|
||||
content '\e016'
|
||||
|
||||
.oi[data-glyph=ban]:before
|
||||
content '\e017'
|
||||
|
||||
.oi[data-glyph=bar-chart]:before
|
||||
content '\e018'
|
||||
|
||||
.oi[data-glyph=basket]:before
|
||||
content '\e019'
|
||||
|
||||
.oi[data-glyph=battery-empty]:before
|
||||
content '\e01a'
|
||||
|
||||
.oi[data-glyph=battery-full]:before
|
||||
content '\e01b'
|
||||
|
||||
.oi[data-glyph=beaker]:before
|
||||
content '\e01c'
|
||||
|
||||
.oi[data-glyph=bell]:before
|
||||
content '\e01d'
|
||||
|
||||
.oi[data-glyph=bluetooth]:before
|
||||
content '\e01e'
|
||||
|
||||
.oi[data-glyph=bold]:before
|
||||
content '\e01f'
|
||||
|
||||
.oi[data-glyph=bolt]:before
|
||||
content '\e020'
|
||||
|
||||
.oi[data-glyph=book]:before
|
||||
content '\e021'
|
||||
|
||||
.oi[data-glyph=bookmark]:before
|
||||
content '\e022'
|
||||
|
||||
.oi[data-glyph=box]:before
|
||||
content '\e023'
|
||||
|
||||
.oi[data-glyph=briefcase]:before
|
||||
content '\e024'
|
||||
|
||||
.oi[data-glyph=british-pound]:before
|
||||
content '\e025'
|
||||
|
||||
.oi[data-glyph=browser]:before
|
||||
content '\e026'
|
||||
|
||||
.oi[data-glyph=brush]:before
|
||||
content '\e027'
|
||||
|
||||
.oi[data-glyph=bug]:before
|
||||
content '\e028'
|
||||
|
||||
.oi[data-glyph=bullhorn]:before
|
||||
content '\e029'
|
||||
|
||||
.oi[data-glyph=calculator]:before
|
||||
content '\e02a'
|
||||
|
||||
.oi[data-glyph=calendar]:before
|
||||
content '\e02b'
|
||||
|
||||
.oi[data-glyph=camera-slr]:before
|
||||
content '\e02c'
|
||||
|
||||
.oi[data-glyph=caret-bottom]:before
|
||||
content '\e02d'
|
||||
|
||||
.oi[data-glyph=caret-left]:before
|
||||
content '\e02e'
|
||||
|
||||
.oi[data-glyph=caret-right]:before
|
||||
content '\e02f'
|
||||
|
||||
.oi[data-glyph=caret-top]:before
|
||||
content '\e030'
|
||||
|
||||
.oi[data-glyph=cart]:before
|
||||
content '\e031'
|
||||
|
||||
.oi[data-glyph=chat]:before
|
||||
content '\e032'
|
||||
|
||||
.oi[data-glyph=check]:before
|
||||
content '\e033'
|
||||
|
||||
.oi[data-glyph=chevron-bottom]:before
|
||||
content '\e034'
|
||||
|
||||
.oi[data-glyph=chevron-left]:before
|
||||
content '\e035'
|
||||
|
||||
.oi[data-glyph=chevron-right]:before
|
||||
content '\e036'
|
||||
|
||||
.oi[data-glyph=chevron-top]:before
|
||||
content '\e037'
|
||||
|
||||
.oi[data-glyph=circle-check]:before
|
||||
content '\e038'
|
||||
|
||||
.oi[data-glyph=circle-x]:before
|
||||
content '\e039'
|
||||
|
||||
.oi[data-glyph=clipboard]:before
|
||||
content '\e03a'
|
||||
|
||||
.oi[data-glyph=clock]:before
|
||||
content '\e03b'
|
||||
|
||||
.oi[data-glyph=cloud-download]:before
|
||||
content '\e03c'
|
||||
|
||||
.oi[data-glyph=cloud-upload]:before
|
||||
content '\e03d'
|
||||
|
||||
.oi[data-glyph=cloud]:before
|
||||
content '\e03e'
|
||||
|
||||
.oi[data-glyph=cloudy]:before
|
||||
content '\e03f'
|
||||
|
||||
.oi[data-glyph=code]:before
|
||||
content '\e040'
|
||||
|
||||
.oi[data-glyph=cog]:before
|
||||
content '\e041'
|
||||
|
||||
.oi[data-glyph=collapse-down]:before
|
||||
content '\e042'
|
||||
|
||||
.oi[data-glyph=collapse-left]:before
|
||||
content '\e043'
|
||||
|
||||
.oi[data-glyph=collapse-right]:before
|
||||
content '\e044'
|
||||
|
||||
.oi[data-glyph=collapse-up]:before
|
||||
content '\e045'
|
||||
|
||||
.oi[data-glyph=command]:before
|
||||
content '\e046'
|
||||
|
||||
.oi[data-glyph=comment-square]:before
|
||||
content '\e047'
|
||||
|
||||
.oi[data-glyph=compass]:before
|
||||
content '\e048'
|
||||
|
||||
.oi[data-glyph=contrast]:before
|
||||
content '\e049'
|
||||
|
||||
.oi[data-glyph=copywriting]:before
|
||||
content '\e04a'
|
||||
|
||||
.oi[data-glyph=credit-card]:before
|
||||
content '\e04b'
|
||||
|
||||
.oi[data-glyph=crop]:before
|
||||
content '\e04c'
|
||||
|
||||
.oi[data-glyph=dashboard]:before
|
||||
content '\e04d'
|
||||
|
||||
.oi[data-glyph=data-transfer-download]:before
|
||||
content '\e04e'
|
||||
|
||||
.oi[data-glyph=data-transfer-upload]:before
|
||||
content '\e04f'
|
||||
|
||||
.oi[data-glyph=delete]:before
|
||||
content '\e050'
|
||||
|
||||
.oi[data-glyph=dial]:before
|
||||
content '\e051'
|
||||
|
||||
.oi[data-glyph=document]:before
|
||||
content '\e052'
|
||||
|
||||
.oi[data-glyph=dollar]:before
|
||||
content '\e053'
|
||||
|
||||
.oi[data-glyph=double-quote-sans-left]:before
|
||||
content '\e054'
|
||||
|
||||
.oi[data-glyph=double-quote-sans-right]:before
|
||||
content '\e055'
|
||||
|
||||
.oi[data-glyph=double-quote-serif-left]:before
|
||||
content '\e056'
|
||||
|
||||
.oi[data-glyph=double-quote-serif-right]:before
|
||||
content '\e057'
|
||||
|
||||
.oi[data-glyph=droplet]:before
|
||||
content '\e058'
|
||||
|
||||
.oi[data-glyph=eject]:before
|
||||
content '\e059'
|
||||
|
||||
.oi[data-glyph=elevator]:before
|
||||
content '\e05a'
|
||||
|
||||
.oi[data-glyph=ellipses]:before
|
||||
content '\e05b'
|
||||
|
||||
.oi[data-glyph=envelope-closed]:before
|
||||
content '\e05c'
|
||||
|
||||
.oi[data-glyph=envelope-open]:before
|
||||
content '\e05d'
|
||||
|
||||
.oi[data-glyph=euro]:before
|
||||
content '\e05e'
|
||||
|
||||
.oi[data-glyph=excerpt]:before
|
||||
content '\e05f'
|
||||
|
||||
.oi[data-glyph=expand-down]:before
|
||||
content '\e060'
|
||||
|
||||
.oi[data-glyph=expand-left]:before
|
||||
content '\e061'
|
||||
|
||||
.oi[data-glyph=expand-right]:before
|
||||
content '\e062'
|
||||
|
||||
.oi[data-glyph=expand-up]:before
|
||||
content '\e063'
|
||||
|
||||
.oi[data-glyph=external-link]:before
|
||||
content '\e064'
|
||||
|
||||
.oi[data-glyph=eye]:before
|
||||
content '\e065'
|
||||
|
||||
.oi[data-glyph=eyedropper]:before
|
||||
content '\e066'
|
||||
|
||||
.oi[data-glyph=file]:before
|
||||
content '\e067'
|
||||
|
||||
.oi[data-glyph=fire]:before
|
||||
content '\e068'
|
||||
|
||||
.oi[data-glyph=flag]:before
|
||||
content '\e069'
|
||||
|
||||
.oi[data-glyph=flash]:before
|
||||
content '\e06a'
|
||||
|
||||
.oi[data-glyph=folder]:before
|
||||
content '\e06b'
|
||||
|
||||
.oi[data-glyph=fork]:before
|
||||
content '\e06c'
|
||||
|
||||
.oi[data-glyph=fullscreen-enter]:before
|
||||
content '\e06d'
|
||||
|
||||
.oi[data-glyph=fullscreen-exit]:before
|
||||
content '\e06e'
|
||||
|
||||
.oi[data-glyph=globe]:before
|
||||
content '\e06f'
|
||||
|
||||
.oi[data-glyph=graph]:before
|
||||
content '\e070'
|
||||
|
||||
.oi[data-glyph=grid-four-up]:before
|
||||
content '\e071'
|
||||
|
||||
.oi[data-glyph=grid-three-up]:before
|
||||
content '\e072'
|
||||
|
||||
.oi[data-glyph=grid-two-up]:before
|
||||
content '\e073'
|
||||
|
||||
.oi[data-glyph=hard-drive]:before
|
||||
content '\e074'
|
||||
|
||||
.oi[data-glyph=header]:before
|
||||
content '\e075'
|
||||
|
||||
.oi[data-glyph=headphones]:before
|
||||
content '\e076'
|
||||
|
||||
.oi[data-glyph=heart]:before
|
||||
content '\e077'
|
||||
|
||||
.oi[data-glyph=home]:before
|
||||
content '\e078'
|
||||
|
||||
.oi[data-glyph=image]:before
|
||||
content '\e079'
|
||||
|
||||
.oi[data-glyph=inbox]:before
|
||||
content '\e07a'
|
||||
|
||||
.oi[data-glyph=infinity]:before
|
||||
content '\e07b'
|
||||
|
||||
.oi[data-glyph=info]:before
|
||||
content '\e07c'
|
||||
|
||||
.oi[data-glyph=italic]:before
|
||||
content '\e07d'
|
||||
|
||||
.oi[data-glyph=justify-center]:before
|
||||
content '\e07e'
|
||||
|
||||
.oi[data-glyph=justify-left]:before
|
||||
content '\e07f'
|
||||
|
||||
.oi[data-glyph=justify-right]:before
|
||||
content '\e080'
|
||||
|
||||
.oi[data-glyph=key]:before
|
||||
content '\e081'
|
||||
|
||||
.oi[data-glyph=laptop]:before
|
||||
content '\e082'
|
||||
|
||||
.oi[data-glyph=layers]:before
|
||||
content '\e083'
|
||||
|
||||
.oi[data-glyph=lightbulb]:before
|
||||
content '\e084'
|
||||
|
||||
.oi[data-glyph=link-broken]:before
|
||||
content '\e085'
|
||||
|
||||
.oi[data-glyph=link-intact]:before
|
||||
content '\e086'
|
||||
|
||||
.oi[data-glyph=list-rich]:before
|
||||
content '\e087'
|
||||
|
||||
.oi[data-glyph=list]:before
|
||||
content '\e088'
|
||||
|
||||
.oi[data-glyph=location]:before
|
||||
content '\e089'
|
||||
|
||||
.oi[data-glyph=lock-locked]:before
|
||||
content '\e08a'
|
||||
|
||||
.oi[data-glyph=lock-unlocked]:before
|
||||
content '\e08b'
|
||||
|
||||
.oi[data-glyph=loop-circular]:before
|
||||
content '\e08c'
|
||||
|
||||
.oi[data-glyph=loop-square]:before
|
||||
content '\e08d'
|
||||
|
||||
.oi[data-glyph=loop]:before
|
||||
content '\e08e'
|
||||
|
||||
.oi[data-glyph=magnifying-glass]:before
|
||||
content '\e08f'
|
||||
|
||||
.oi[data-glyph=map-marker]:before
|
||||
content '\e090'
|
||||
|
||||
.oi[data-glyph=map]:before
|
||||
content '\e091'
|
||||
|
||||
.oi[data-glyph=media-pause]:before
|
||||
content '\e092'
|
||||
|
||||
.oi[data-glyph=media-play]:before
|
||||
content '\e093'
|
||||
|
||||
.oi[data-glyph=media-record]:before
|
||||
content '\e094'
|
||||
|
||||
.oi[data-glyph=media-skip-backward]:before
|
||||
content '\e095'
|
||||
|
||||
.oi[data-glyph=media-skip-forward]:before
|
||||
content '\e096'
|
||||
|
||||
.oi[data-glyph=media-step-backward]:before
|
||||
content '\e097'
|
||||
|
||||
.oi[data-glyph=media-step-forward]:before
|
||||
content '\e098'
|
||||
|
||||
.oi[data-glyph=media-stop]:before
|
||||
content '\e099'
|
||||
|
||||
.oi[data-glyph=medical-cross]:before
|
||||
content '\e09a'
|
||||
|
||||
.oi[data-glyph=menu]:before
|
||||
content '\e09b'
|
||||
|
||||
.oi[data-glyph=microphone]:before
|
||||
content '\e09c'
|
||||
|
||||
.oi[data-glyph=minus]:before
|
||||
content '\e09d'
|
||||
|
||||
.oi[data-glyph=monitor]:before
|
||||
content '\e09e'
|
||||
|
||||
.oi[data-glyph=moon]:before
|
||||
content '\e09f'
|
||||
|
||||
.oi[data-glyph=move]:before
|
||||
content '\e0a0'
|
||||
|
||||
.oi[data-glyph=musical-note]:before
|
||||
content '\e0a1'
|
||||
|
||||
.oi[data-glyph=paperclip]:before
|
||||
content '\e0a2'
|
||||
|
||||
.oi[data-glyph=pencil]:before
|
||||
content '\e0a3'
|
||||
|
||||
.oi[data-glyph=people]:before
|
||||
content '\e0a4'
|
||||
|
||||
.oi[data-glyph=person]:before
|
||||
content '\e0a5'
|
||||
|
||||
.oi[data-glyph=phone]:before
|
||||
content '\e0a6'
|
||||
|
||||
.oi[data-glyph=pie-chart]:before
|
||||
content '\e0a7'
|
||||
|
||||
.oi[data-glyph=pin]:before
|
||||
content '\e0a8'
|
||||
|
||||
.oi[data-glyph=play-circle]:before
|
||||
content '\e0a9'
|
||||
|
||||
.oi[data-glyph=plus]:before
|
||||
content '\e0aa'
|
||||
|
||||
.oi[data-glyph=power-standby]:before
|
||||
content '\e0ab'
|
||||
|
||||
.oi[data-glyph=print]:before
|
||||
content '\e0ac'
|
||||
|
||||
.oi[data-glyph=project]:before
|
||||
content '\e0ad'
|
||||
|
||||
.oi[data-glyph=pulse]:before
|
||||
content '\e0ae'
|
||||
|
||||
.oi[data-glyph=puzzle-piece]:before
|
||||
content '\e0af'
|
||||
|
||||
.oi[data-glyph=question-mark]:before
|
||||
content '\e0b0'
|
||||
|
||||
.oi[data-glyph=rain]:before
|
||||
content '\e0b1'
|
||||
|
||||
.oi[data-glyph=random]:before
|
||||
content '\e0b2'
|
||||
|
||||
.oi[data-glyph=reload]:before
|
||||
content '\e0b3'
|
||||
|
||||
.oi[data-glyph=resize-both]:before
|
||||
content '\e0b4'
|
||||
|
||||
.oi[data-glyph=resize-height]:before
|
||||
content '\e0b5'
|
||||
|
||||
.oi[data-glyph=resize-width]:before
|
||||
content '\e0b6'
|
||||
|
||||
.oi[data-glyph=rss-alt]:before
|
||||
content '\e0b7'
|
||||
|
||||
.oi[data-glyph=rss]:before
|
||||
content '\e0b8'
|
||||
|
||||
.oi[data-glyph=script]:before
|
||||
content '\e0b9'
|
||||
|
||||
.oi[data-glyph=share-boxed]:before
|
||||
content '\e0ba'
|
||||
|
||||
.oi[data-glyph=share]:before
|
||||
content '\e0bb'
|
||||
|
||||
.oi[data-glyph=shield]:before
|
||||
content '\e0bc'
|
||||
|
||||
.oi[data-glyph=signal]:before
|
||||
content '\e0bd'
|
||||
|
||||
.oi[data-glyph=signpost]:before
|
||||
content '\e0be'
|
||||
|
||||
.oi[data-glyph=sort-ascending]:before
|
||||
content '\e0bf'
|
||||
|
||||
.oi[data-glyph=sort-descending]:before
|
||||
content '\e0c0'
|
||||
|
||||
.oi[data-glyph=spreadsheet]:before
|
||||
content '\e0c1'
|
||||
|
||||
.oi[data-glyph=star]:before
|
||||
content '\e0c2'
|
||||
|
||||
.oi[data-glyph=sun]:before
|
||||
content '\e0c3'
|
||||
|
||||
.oi[data-glyph=tablet]:before
|
||||
content '\e0c4'
|
||||
|
||||
.oi[data-glyph=tag]:before
|
||||
content '\e0c5'
|
||||
|
||||
.oi[data-glyph=tags]:before
|
||||
content '\e0c6'
|
||||
|
||||
.oi[data-glyph=target]:before
|
||||
content '\e0c7'
|
||||
|
||||
.oi[data-glyph=task]:before
|
||||
content '\e0c8'
|
||||
|
||||
.oi[data-glyph=terminal]:before
|
||||
content '\e0c9'
|
||||
|
||||
.oi[data-glyph=text]:before
|
||||
content '\e0ca'
|
||||
|
||||
.oi[data-glyph=thumb-down]:before
|
||||
content '\e0cb'
|
||||
|
||||
.oi[data-glyph=thumb-up]:before
|
||||
content '\e0cc'
|
||||
|
||||
.oi[data-glyph=timer]:before
|
||||
content '\e0cd'
|
||||
|
||||
.oi[data-glyph=transfer]:before
|
||||
content '\e0ce'
|
||||
|
||||
.oi[data-glyph=trash]:before
|
||||
content '\e0cf'
|
||||
|
||||
.oi[data-glyph=underline]:before
|
||||
content '\e0d0'
|
||||
|
||||
.oi[data-glyph=vertical-align-bottom]:before
|
||||
content '\e0d1'
|
||||
|
||||
.oi[data-glyph=vertical-align-center]:before
|
||||
content '\e0d2'
|
||||
|
||||
.oi[data-glyph=vertical-align-top]:before
|
||||
content '\e0d3'
|
||||
|
||||
.oi[data-glyph=video]:before
|
||||
content '\e0d4'
|
||||
|
||||
.oi[data-glyph=volume-high]:before
|
||||
content '\e0d5'
|
||||
|
||||
.oi[data-glyph=volume-low]:before
|
||||
content '\e0d6'
|
||||
|
||||
.oi[data-glyph=volume-off]:before
|
||||
content '\e0d7'
|
||||
|
||||
.oi[data-glyph=warning]:before
|
||||
content '\e0d8'
|
||||
|
||||
.oi[data-glyph=wifi]:before
|
||||
content '\e0d9'
|
||||
|
||||
.oi[data-glyph=wrench]:before
|
||||
content '\e0da'
|
||||
|
||||
.oi[data-glyph=x]:before
|
||||
content '\e0db'
|
||||
|
||||
.oi[data-glyph=yen]:before
|
||||
content '\e0dc'
|
||||
|
||||
.oi[data-glyph=zoom-in]:before
|
||||
content '\e0dd'
|
||||
|
||||
.oi[data-glyph=zoom-out]:before
|
||||
content '\e0de'
|
0
public/assets/fonts/open-iconic.eot
Normal file
0
public/assets/fonts/open-iconic.eot
Normal file
0
public/assets/fonts/open-iconic.otf
Normal file
0
public/assets/fonts/open-iconic.otf
Normal file
543
public/assets/fonts/open-iconic.svg
Normal file
543
public/assets/fonts/open-iconic.svg
Normal file
|
@ -0,0 +1,543 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2014-7-1: Created.
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014
|
||||
By P.J. Onori
|
||||
Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net)
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="open-iconic" horiz-adv-x="800" >
|
||||
<font-face
|
||||
font-family="Icons"
|
||||
font-weight="400"
|
||||
font-stretch="normal"
|
||||
units-per-em="800"
|
||||
panose-1="2 0 5 3 0 0 0 0 0 0"
|
||||
ascent="800"
|
||||
descent="0"
|
||||
bbox="-0.5 -101 802 800.126"
|
||||
underline-thickness="50"
|
||||
underline-position="-100"
|
||||
unicode-range="U+E000-E0DE"
|
||||
/>
|
||||
<missing-glyph />
|
||||
<glyph glyph-name="" unicode=""
|
||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM400 500l200 -150l-200 -150v100h-400v100h400v100z" />
|
||||
<glyph glyph-name="1" unicode=""
|
||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM200 500v-100h400v-100h-400v-100l-200 150z" />
|
||||
<glyph glyph-name="2" unicode=""
|
||||
d="M350 700c193 0 350 -157 350 -350v-50h100l-200 -200l-200 200h100v50c0 138 -112 250 -250 250s-250 -112 -250 -250c0 193 157 350 350 350z" />
|
||||
<glyph glyph-name="3" unicode=""
|
||||
d="M450 700c193 0 350 -157 350 -350c0 138 -112 250 -250 250s-250 -112 -250 -250v-50h100l-200 -200l-200 200h100v50c0 193 157 350 350 350z" />
|
||||
<glyph glyph-name="4" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM100 500h600v-100h-600v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="5" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h600v-100h-600v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="6" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM200 500h600v-100h-600v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="7" unicode=""
|
||||
d="M400 700c75 0 146 -23 206 -59l-75 -225l-322 234c57 31 122 50 191 50zM125 588l191 -138l-310 -222c-4 24 -6 47 -6 72c0 114 49 215 125 288zM688 575c69 -72 112 -168 112 -275c0 -35 -8 -68 -16 -100h-218zM216 253l112 -347c-128 23 -232 109 -287 222zM372 100
|
||||
h372c-64 -109 -177 -185 -310 -197z" />
|
||||
<glyph glyph-name="8" unicode="" horiz-adv-x="600"
|
||||
d="M200 800h100v-500h200l-247 -300l-253 300h200v500z" />
|
||||
<glyph glyph-name="9" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 700v-300h-200l300 -300l300 300h-200v300h-200z" />
|
||||
<glyph glyph-name="a" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300l300 -300v200h300v200h-300v200z" />
|
||||
<glyph glyph-name="b" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700v-200h-300v-200h300v-200l300 300z" />
|
||||
<glyph glyph-name="c" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300h200v-300h200v300h200z" />
|
||||
<glyph glyph-name="d" unicode=""
|
||||
d="M300 600v-200h500v-100h-500v-200l-300 247z" />
|
||||
<glyph glyph-name="e" unicode=""
|
||||
d="M500 600l300 -247l-300 -253v200h-500v100h500v200z" />
|
||||
<glyph glyph-name="f" unicode="" horiz-adv-x="600"
|
||||
d="M200 800h200v-500h200l-297 -300l-303 300h200v500z" />
|
||||
<glyph glyph-name="10" unicode=""
|
||||
d="M300 700v-200h500v-200h-500v-200l-300 297z" />
|
||||
<glyph glyph-name="11" unicode=""
|
||||
d="M500 700l300 -297l-300 -303v200h-500v200h500v200z" />
|
||||
<glyph glyph-name="12" unicode="" horiz-adv-x="600"
|
||||
d="M297 800l303 -300h-200v-500h-200v500h-200z" />
|
||||
<glyph glyph-name="13" unicode="" horiz-adv-x="600"
|
||||
d="M247 800l253 -300h-200v-500h-100v500h-200z" />
|
||||
<glyph glyph-name="14" unicode=""
|
||||
d="M400 800h100v-800h-100v800zM200 700h100v-600h-100v600zM600 600h100v-400h-100v400zM0 500h100v-200h-100v200z" />
|
||||
<glyph glyph-name="15" unicode=""
|
||||
d="M116 600l72 -72c-54 -54 -88 -126 -88 -209s34 -159 88 -213l-72 -72c-72 72 -116 175 -116 285s44 209 116 281zM684 600c72 -72 116 -171 116 -281s-44 -213 -116 -285l-72 72c54 54 88 130 88 213s-34 155 -88 209zM259 460l69 -72c-18 -18 -28 -41 -28 -69
|
||||
s10 -54 28 -72l-69 -72c-36 36 -59 89 -59 144s23 105 59 141zM541 459c36 -36 59 -85 59 -140s-23 -108 -59 -144l-69 72c18 18 28 44 28 72s-10 51 -28 69z" />
|
||||
<glyph glyph-name="16" unicode="" horiz-adv-x="400"
|
||||
d="M200 800c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM100 319c31 -11 65 -19 100 -19s68 8 100 19v-319l-100 100l-100 -100v319z" />
|
||||
<glyph glyph-name="17" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300c0 -66 21 -126 56 -175l419 419c-49 35 -109 56 -175 56zM644 575l-419 -419c49 -35 109 -56 175 -56c166 0 300 134 300 300
|
||||
c0 66 -21 126 -56 175z" />
|
||||
<glyph glyph-name="18" unicode=""
|
||||
d="M0 700h100v-600h700v-100h-800v700zM500 700h200v-500h-200v500zM200 500h200v-300h-200v300z" />
|
||||
<glyph glyph-name="19" unicode=""
|
||||
d="M397 800c13 1 23 -4 34 -13c2 -2 214 -254 241 -287h128v-100h-100v-366c0 -18 -16 -34 -34 -34h-532c-18 0 -34 16 -34 34v366h-100v100h128l234 281c9 11 22 18 35 19zM400 672l-144 -172h288zM250 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50
|
||||
v100c0 28 -22 50 -50 50zM550 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50v100c0 28 -22 50 -50 50z" />
|
||||
<glyph glyph-name="1a" unicode=""
|
||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9zM100 600v-400h500v400h-500z" />
|
||||
<glyph glyph-name="1b" unicode=""
|
||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9z" />
|
||||
<glyph glyph-name="1c" unicode=""
|
||||
d="M92 650c0 23 19 50 45 50h3h5h5h500c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-141c9 -17 120 -231 166 -309c16 -26 34 -61 34 -106c0 -39 -15 -77 -41 -103h-3c-26 -25 -62 -41 -100 -41h-512c-39 0 -77 15 -103 41s-41 64 -41 103c0 46 18 80 34 106
|
||||
c46 78 157 292 166 309v141h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51zM500 600h-200v-162l-6 -10s-63 -123 -119 -228h450c-56 105 -119 228 -119 228l-6 10v162z" />
|
||||
<glyph glyph-name="1d" unicode=""
|
||||
d="M400 800c110 0 200 -90 200 -200c0 -104 52 -198 134 -266c41 -34 66 -82 66 -134h-800c0 52 25 100 66 134c82 68 134 162 134 266c0 110 90 200 200 200zM300 100h200c0 -55 -45 -100 -100 -100s-100 45 -100 100z" />
|
||||
<glyph glyph-name="1e" unicode="" horiz-adv-x="600"
|
||||
d="M150 800h50l350 -250l-225 -147l225 -153l-350 -250h-50v250l-75 -75l-75 75l150 150l-150 150l75 75l75 -75v250zM250 650v-200l150 100zM250 350v-200l150 100z" />
|
||||
<glyph glyph-name="1f" unicode=""
|
||||
d="M0 800h500c110 0 200 -90 200 -200c0 -47 -17 -91 -44 -125c85 -40 144 -125 144 -225c0 -138 -112 -250 -250 -250h-550v100c55 0 100 45 100 100v400c0 55 -45 100 -100 100v100zM300 700v-200h100c55 0 100 45 100 100s-45 100 -100 100h-100zM300 400v-300h150
|
||||
c83 0 150 67 150 150s-67 150 -150 150h-150z" />
|
||||
<glyph glyph-name="20" unicode="" horiz-adv-x="600"
|
||||
d="M300 800v-300h200l-300 -500v300h-200z" />
|
||||
<glyph glyph-name="21" unicode=""
|
||||
d="M100 800h300v-300l100 100l100 -100v300h50c28 0 50 -22 50 -50v-550h-550c-28 0 -50 -22 -50 -50s22 -50 50 -50h550v-100h-550c-83 0 -150 67 -150 150v550l3 19c8 39 39 70 78 78z" />
|
||||
<glyph glyph-name="22" unicode="" horiz-adv-x="400"
|
||||
d="M0 800h400v-800l-200 200l-200 -200v800z" />
|
||||
<glyph glyph-name="23" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM0 600h300v-103h203v103h297v-591c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v591z" />
|
||||
<glyph glyph-name="24" unicode=""
|
||||
d="M300 800h200c55 0 100 -45 100 -100v-100h191c6 0 9 -3 9 -9v-241c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v241c0 6 3 9 9 9h191v100c0 55 45 100 100 100zM300 700v-100h200v100h-200zM0 209c16 -6 32 -9 50 -9h700c18 0 34 3 50 9v-200c0 -6 -3 -9 -9 -9h-782
|
||||
c-6 0 -9 3 -9 9v200z" />
|
||||
<glyph glyph-name="25" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c58 0 110 -16 147 -53s53 -89 53 -147h-100c0 39 -11 61 -25 75s-36 25 -75 25c-35 0 -55 -10 -72 -31s-28 -55 -28 -94c0 -51 20 -107 28 -175h172v-100h-178c-14 -60 -49 -127 -113 -200h491v-100h-600v122l16 12c69 69 95 121 106 166h-122v100h125
|
||||
c-8 50 -25 106 -25 175c0 58 16 114 50 156c34 43 88 69 150 69z" />
|
||||
<glyph glyph-name="26" unicode=""
|
||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-700c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v700v2c0 20 15 42 34 48zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50zM350 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h300c28 0 50 22 50 50
|
||||
s-22 50 -50 50h-300zM100 400v-400h600v400h-600z" />
|
||||
<glyph glyph-name="27" unicode=""
|
||||
d="M744 797l6 -3l44 -44c4 -4 3 -8 0 -12l-266 -375l-15 -13l-25 -12c-23 72 -78 127 -150 150l12 25l13 15l375 266zM266 400c74 0 134 -60 134 -134c0 -147 -119 -266 -266 -266c-48 0 -95 12 -134 34c80 46 134 133 134 232c0 74 58 134 132 134z" />
|
||||
<glyph glyph-name="28" unicode=""
|
||||
d="M9 451c0 23 19 50 46 50c8 0 19 -3 26 -7l131 -66l29 22c-79 81 -1 250 118 250s197 -167 119 -250l28 -22l131 66c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-115 -56c9 -16 19 -33 25 -50h68c28 0 50 -22 50 -50s-22 -50 -50 -50h-50
|
||||
c0 -23 -2 -45 -6 -66l78 -40c21 -5 37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11l-65 35c-24 -46 -62 -86 -103 -110c-35 19 -60 45 -60 72v135v4v5v6v5v5v87c0 28 -22 50 -50 50c-24 0 -45 -17 -50 -40c1 -3 1 -8 1 -11s0 -8 -1 -11v-82v-4v-5v-144
|
||||
c0 -28 -24 -53 -59 -72c-41 25 -79 64 -103 110l-66 -35c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49l78 40c-4 21 -6 43 -6 66h-50h-5c-28 0 -50 22 -50 50c0 26 22 50 50 50h5h69c6 17 16 34 25 50l-116 56c-16 7 -28 27 -28 45z" />
|
||||
<glyph glyph-name="29" unicode=""
|
||||
d="M600 700h91c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-91v600zM210 503l290 147v-500l-250 125v-3c-15 0 -25 -8 -28 -22l75 -178c11 -25 0 -58 -25 -69s-58 0 -69 25l-103 272h-91c-6 0 -9 3 -9 9v182c0 6 3 9 9 9h182z" />
|
||||
<glyph glyph-name="2a" unicode=""
|
||||
d="M9 800h682c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM100 700v-200h500v200h-500zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-300h100v300h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="2b" unicode=""
|
||||
d="M0 800h700v-200h-700v200zM0 500h700v-491c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v491zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="2c" unicode=""
|
||||
d="M409 800h182c6 0 10 -4 12 -9l94 -182c2 -5 6 -9 12 -9h82c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v441c0 83 67 150 150 150h141c6 0 10 4 12 9l94 182c2 5 6 9 12 9zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z
|
||||
M500 500c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM500 400c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="2d" unicode=""
|
||||
d="M0 600h800l-400 -400z" />
|
||||
<glyph glyph-name="2e" unicode="" horiz-adv-x="400"
|
||||
d="M400 800v-800l-400 400z" />
|
||||
<glyph glyph-name="2f" unicode="" horiz-adv-x="400"
|
||||
d="M0 800l400 -400l-400 -400v800z" />
|
||||
<glyph glyph-name="30" unicode=""
|
||||
d="M400 600l400 -400h-800z" />
|
||||
<glyph glyph-name="31" unicode=""
|
||||
d="M0 550c0 23 20 50 46 50h3h5h4h200c17 0 37 -13 44 -28l38 -72h444c14 0 19 -12 15 -25l-81 -250c-4 -13 -21 -25 -35 -25h-350c-14 0 -30 12 -34 25c-27 83 -54 167 -81 250l-10 25h-150c-2 0 -5 -1 -7 -1c-28 0 -51 23 -51 51zM358 100c28 0 50 -22 50 -50
|
||||
s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM658 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="32" unicode=""
|
||||
d="M0 700h500v-100h-300v-300h-100l-100 -100v500zM300 500h500v-500l-100 100h-400v400z" />
|
||||
<glyph glyph-name="33" unicode=""
|
||||
d="M641 700l143 -141l-493 -493c-71 76 -146 148 -219 222l-72 71l141 141c50 -51 101 -101 153 -150c116 117 234 231 347 350z" />
|
||||
<glyph glyph-name="34" unicode=""
|
||||
d="M150 600l250 -250l250 250l150 -150l-400 -400l-400 400z" />
|
||||
<glyph glyph-name="35" unicode="" horiz-adv-x="600"
|
||||
d="M400 800l150 -150l-250 -250l250 -250l-150 -150l-400 400z" />
|
||||
<glyph glyph-name="36" unicode="" horiz-adv-x="600"
|
||||
d="M150 800l400 -400l-400 -400l-150 150l250 250l-250 250z" />
|
||||
<glyph glyph-name="37" unicode=""
|
||||
d="M400 600l400 -400l-150 -150l-250 250l-250 -250l-150 150z" />
|
||||
<glyph glyph-name="38" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM600 622l-250 -250l-100 100l-72 -72l172 -172l322 322z" />
|
||||
<glyph glyph-name="39" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM250 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||
<glyph glyph-name="3a" unicode=""
|
||||
d="M350 800c28 0 50 -22 50 -50v-50h75c14 0 25 -11 25 -25v-75h-300v75c0 14 11 25 25 25h75v50c0 28 22 50 50 50zM25 700h75v-200h500v200h75c14 0 25 -11 25 -25v-650c0 -14 -11 -25 -25 -25h-650c-14 0 -25 11 -25 25v650c0 14 11 25 25 25z" />
|
||||
<glyph glyph-name="3b" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM350 600h100v-181c23 -24 47 -47 72 -69l-72 -72c-27 30 -55 59 -84 88l-16 12
|
||||
v222z" />
|
||||
<glyph glyph-name="3c" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-191v50c0 83 -67 150 -150 150s-150 -67 -150 -150v-50h-272c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM434 400h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1
|
||||
v-150h150l-200 -200l-200 200h150v150v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="3d" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-141l-200 200l-200 -200h-222c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM450 350l250 -250h-200v-50c0 -28 -22 -50 -50 -50s-50 22 -50 50v50h-200z" />
|
||||
<glyph glyph-name="3e" unicode=""
|
||||
d="M450 700c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200s90 200 200 200c23 114 129 200 250 200z" />
|
||||
<glyph glyph-name="3f" unicode=""
|
||||
d="M250 800c82 0 154 -40 200 -100c-143 0 -270 -85 -325 -209c-36 -10 -70 -25 -100 -47c-16 33 -25 67 -25 106c0 138 112 250 250 250zM450 600c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200
|
||||
s90 200 200 200c23 114 129 200 250 200z" />
|
||||
<glyph glyph-name="40" unicode=""
|
||||
d="M500 700h100l-300 -600h-100zM100 600h100l-100 -200l100 -200h-100l-100 200zM600 600h100l100 -200l-100 -200h-100l100 200z" />
|
||||
<glyph glyph-name="41" unicode=""
|
||||
d="M350 800h100l50 -119l28 -12l119 50l72 -72l-50 -119l12 -28l119 -50v-100l-119 -50l-12 -28l50 -119l-72 -72l-119 50l-28 -12l-50 -119h-100l-50 119l-28 12l-119 -50l-72 72l50 119l-12 28l-119 50v100l119 50l12 28l-50 119l72 72l119 -50l28 12zM400 550
|
||||
c-83 0 -150 -67 -150 -150s67 -150 150 -150s150 67 150 150s-67 150 -150 150z" />
|
||||
<glyph glyph-name="42" unicode=""
|
||||
d="M0 800h800v-200h-800v200zM200 500h400l-200 -200zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="43" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM500 600v-400l-200 200z" />
|
||||
<glyph glyph-name="44" unicode=""
|
||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM300 600l200 -200l-200 -200v400z" />
|
||||
<glyph glyph-name="45" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM400 500l200 -200h-400zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="46" unicode=""
|
||||
d="M150 700c83 0 150 -67 150 -150v-50h100v50c0 83 67 150 150 150s150 -67 150 -150s-67 -150 -150 -150h-50v-100h50c83 0 150 -67 150 -150s-67 -150 -150 -150s-150 67 -150 150v50h-100v-50c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150h50v100h-50
|
||||
c-83 0 -150 67 -150 150s67 150 150 150zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h50v50c0 28 -22 50 -50 50zM550 600c-28 0 -50 -22 -50 -50v-50h50c28 0 50 22 50 50s-22 50 -50 50zM300 400v-100h100v100h-100zM150 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||
s50 22 50 50v50h-50zM500 200v-50c0 -28 22 -50 50 -50s50 22 50 50s-22 50 -50 50h-50z" />
|
||||
<glyph glyph-name="47" unicode=""
|
||||
d="M0 791c0 5 4 9 9 9h782c6 0 9 -4 9 -10v-790l-200 200h-591c-6 0 -9 3 -9 9v582z" />
|
||||
<glyph glyph-name="48" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM600 600l-100 -300l-300 -100l100 300zM400 450c-28 0 -50 -22 -50 -50
|
||||
s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="49" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700v-600c166 0 300 134 300 300s-134 300 -300 300z" />
|
||||
<glyph glyph-name="4a" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM0 600h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100zM750 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="4b" unicode=""
|
||||
d="M25 700h750c14 0 25 -11 25 -25v-75h-800v75c0 14 11 25 25 25zM0 500h800v-375c0 -14 -11 -25 -25 -25h-750c-14 0 -25 11 -25 25v375zM100 300v-100h100v100h-100zM300 300v-100h100v100h-100z" />
|
||||
<glyph glyph-name="4c" unicode=""
|
||||
d="M100 800h100v-100h450l100 100l50 -50l-100 -100v-450h100v-100h-100v-100h-100v100h-500v500h-100v100h100v100zM200 600v-350l350 350h-350zM600 550l-350 -350h350v350z" />
|
||||
<glyph glyph-name="4d" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z
|
||||
M200 452c0 20 15 42 34 48h3h3h8c12 0 28 -7 36 -16l91 -90l25 6c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100l6 25l-90 91c-9 8 -16 24 -16 36zM550 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="4e" unicode=""
|
||||
d="M300 800h200v-300h200l-300 -300l-300 300h200v300zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="4f" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM400 600l300 -300h-200v-300h-200v300h-200z" />
|
||||
<glyph glyph-name="50" unicode=""
|
||||
d="M200 700h600v-600h-600l-200 300zM350 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||
<glyph glyph-name="51" unicode=""
|
||||
d="M400 700c220 0 400 -180 400 -400h-100c0 166 -134 300 -300 300s-300 -134 -300 -300h-100c0 220 180 400 400 400zM341 491l59 -88l59 88c81 -25 141 -101 141 -191c0 -110 -90 -200 -200 -200s-200 90 -200 200c0 90 60 166 141 191z" />
|
||||
<glyph glyph-name="52" unicode=""
|
||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300zM100 600v-100h100v100h-100zM100 400v-100h100v100h-100zM100 200v-100h400v100h-400z" />
|
||||
<glyph glyph-name="53" unicode="" horiz-adv-x="600"
|
||||
d="M200 700h100v-100h75c30 0 58 -6 81 -22s44 -44 44 -78v-100h-100v94c-4 3 -13 6 -25 6h-250c-14 0 -25 -11 -25 -25v-50c0 -15 20 -40 34 -44l257 -65c66 -16 109 -73 109 -141v-50c0 -68 -57 -125 -125 -125h-75v-100h-100v100h-75c-30 0 -58 6 -81 22s-44 44 -44 78
|
||||
v100h100v-94c4 -3 13 -6 25 -6h250c14 0 25 11 25 25v50c0 15 -20 40 -34 44l-257 65c-66 16 -109 73 -109 141v50c0 68 57 125 125 125h75v100z" />
|
||||
<glyph glyph-name="54" unicode=""
|
||||
d="M0 700h300v-300l-300 -300v600zM500 700h300v-300l-300 -300v600z" />
|
||||
<glyph glyph-name="55" unicode=""
|
||||
d="M300 700v-600h-300v300zM800 700v-600h-300v300z" />
|
||||
<glyph glyph-name="56" unicode=""
|
||||
d="M300 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300zM800 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300z" />
|
||||
<glyph glyph-name="57" unicode=""
|
||||
d="M0 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300zM500 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300z" />
|
||||
<glyph glyph-name="58" unicode="" horiz-adv-x="600"
|
||||
d="M300 800l34 -34c11 -11 266 -270 266 -488c0 -165 -135 -300 -300 -300s-300 135 -300 300c0 218 255 477 266 488zM150 328c-28 0 -50 -22 -50 -50c0 -110 90 -200 200 -200c28 0 50 22 50 50s-22 50 -50 50c-55 0 -100 45 -100 100c0 28 -22 50 -50 50z" />
|
||||
<glyph glyph-name="59" unicode=""
|
||||
d="M400 800l400 -500h-800zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="5a" unicode="" horiz-adv-x="600"
|
||||
d="M300 800l300 -300h-600zM0 300h600l-300 -300z" />
|
||||
<glyph glyph-name="5b" unicode=""
|
||||
d="M0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200z" />
|
||||
<glyph glyph-name="5c" unicode=""
|
||||
d="M0 700h800v-100l-400 -200l-400 200v100zM0 500l400 -200l400 200v-400h-800v400z" />
|
||||
<glyph glyph-name="5d" unicode=""
|
||||
d="M400 800l400 -200v-600h-800v600zM400 688l-300 -150v-188l300 -150l300 150v188zM200 500h400v-100l-200 -100l-200 100v100z" />
|
||||
<glyph glyph-name="5e" unicode=""
|
||||
d="M600 700c69 0 134 -19 191 -50l-16 -106c-49 35 -109 56 -175 56c-131 0 -240 -84 -281 -200h331l-16 -100h-334c0 -36 8 -68 19 -100h297l-16 -100h-222c55 -61 133 -100 222 -100c78 0 147 30 200 78v-122c-59 -35 -127 -56 -200 -56c-147 0 -274 82 -344 200h-256
|
||||
l19 100h197c-8 32 -16 66 -16 100h-200l25 100h191c45 172 198 300 384 300z" />
|
||||
<glyph glyph-name="5f" unicode=""
|
||||
d="M0 700h700v-100h-700v100zM0 500h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100z" />
|
||||
<glyph glyph-name="60" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM200 600h400l-200 -200zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="61" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM200 600l200 -200l-200 -200v400z" />
|
||||
<glyph glyph-name="62" unicode=""
|
||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM600 600v-400l-200 200z" />
|
||||
<glyph glyph-name="63" unicode=""
|
||||
d="M0 800h800v-200h-800v200zM400 400l200 -200h-400zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="64" unicode=""
|
||||
d="M0 800h200v-100h-100v-600h600v100h100v-200h-800v800zM400 800h400v-400l-150 150l-250 -250l-100 100l250 250z" />
|
||||
<glyph glyph-name="65" unicode=""
|
||||
d="M403 700c247 0 397 -300 397 -300s-150 -300 -397 -300c-253 0 -403 300 -403 300s150 300 403 300zM400 600c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM400 500c10 0 19 -3 28 -6c-16 -8 -28 -24 -28 -44c0 -28 22 -50 50 -50
|
||||
c20 0 36 12 44 28c3 -9 6 -18 6 -28c0 -55 -45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="66" unicode="" horiz-adv-x="900"
|
||||
d="M331 700h3h3c3 1 7 1 10 1c12 0 29 -8 37 -17l94 -93l66 65c57 57 155 57 212 0c58 -58 58 -154 0 -212l-65 -66l93 -94c10 -8 18 -25 18 -38c0 -28 -22 -50 -50 -50c-13 0 -32 9 -40 20l-62 65l-381 -381h-269v272l375 381l-63 63c-9 8 -16 24 -16 36c0 20 16 42 35 48z
|
||||
M447 481l-313 -315l128 -132l316 316z" />
|
||||
<glyph glyph-name="67" unicode=""
|
||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300z" />
|
||||
<glyph glyph-name="68" unicode=""
|
||||
d="M200 800c0 0 200 -100 200 -300s-298 -302 -200 -500c0 0 -200 100 -200 300s300 300 200 500zM500 500c0 0 200 -100 200 -300c0 -150 -60 -200 -100 -200h-300c0 200 300 300 200 500z" />
|
||||
<glyph glyph-name="69" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM200 800h300v-100h300l-200 -203l200 -197h-400v100h-200v400z" />
|
||||
<glyph glyph-name="6a" unicode="" horiz-adv-x="400"
|
||||
d="M150 800h150l-100 -200h200l-150 -300h150l-300 -300l-100 300h134l66 200h-200z" />
|
||||
<glyph glyph-name="6b" unicode=""
|
||||
d="M0 800h300v-100h500v-100h-800v200zM0 500h800v-450c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v450z" />
|
||||
<glyph glyph-name="6c" unicode=""
|
||||
d="M150 800c83 0 150 -67 150 -150c0 -66 -41 -121 -100 -141v-118c15 5 33 9 50 9h200c28 0 50 22 50 50v59c-59 20 -100 75 -100 141c0 83 67 150 150 150s150 -67 150 -150c0 -66 -41 -121 -100 -141v-59c0 -82 -68 -150 -150 -150h-200c-14 0 -25 -7 -34 -16
|
||||
c50 -24 84 -74 84 -134c0 -83 -67 -150 -150 -150s-150 67 -150 150c0 66 41 121 100 141v218c-59 20 -100 75 -100 141c0 83 67 150 150 150z" />
|
||||
<glyph glyph-name="6d" unicode=""
|
||||
d="M0 800h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400zM500 400l150 -150l150 150v-400h-400l150 150l-150 150z" />
|
||||
<glyph glyph-name="6e" unicode=""
|
||||
d="M100 800l150 -150l150 150v-400h-400l150 150l-150 150zM400 400h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400z" />
|
||||
<glyph glyph-name="6f" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700c-56 0 -108 -17 -153 -44l22 -19c33 -18 13 -48 -13 -59c-30 -13 -77 10 -65 -41c13 -55 -27 -3 -47 -15c-42 -26 49 -152 31 -156l-59 34c-8 0 -13 -5 -16 -10
|
||||
c1 -30 10 -57 19 -84c28 -11 77 -2 100 -25c47 -28 97 -115 75 -159c34 -13 68 -22 106 -22c101 0 193 48 247 125c3 24 -8 44 -50 44c-69 0 -156 13 -153 97c2 46 101 108 66 143c-30 30 12 39 12 66c0 37 -65 32 -69 50s20 36 41 56c-30 10 -60 19 -94 19zM631 591
|
||||
c-38 -11 -94 -35 -87 -53c6 -15 52 -1 65 -13c11 -10 16 -59 44 -31l22 22v3c-11 26 -26 50 -44 72z" />
|
||||
<glyph glyph-name="70" unicode=""
|
||||
d="M703 800l97 -100l-400 -400l-100 100l-200 -203l-100 100l300 303l100 -100zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="71" unicode=""
|
||||
d="M0 700h100v-100h-100v100zM200 700h100v-100h-100v100zM400 700h100v-100h-100v100zM600 700h100v-100h-100v100zM0 500h100v-100h-100v100zM200 500h100v-100h-100v100zM400 500h100v-100h-100v100zM600 500h100v-100h-100v100zM0 300h100v-100h-100v100zM200 300h100
|
||||
v-100h-100v100zM400 300h100v-100h-100v100zM600 300h100v-100h-100v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100zM600 100h100v-100h-100v100z" />
|
||||
<glyph glyph-name="72" unicode=""
|
||||
d="M0 800h200v-200h-200v200zM300 800h200v-200h-200v200zM600 800h200v-200h-200v200zM0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200zM0 200h200v-200h-200v200zM300 200h200v-200h-200v200zM600 200h200v-200h-200v200z" />
|
||||
<glyph glyph-name="73" unicode=""
|
||||
d="M0 800h300v-300h-300v300zM500 800h300v-300h-300v300zM0 300h300v-300h-300v300zM500 300h300v-300h-300v300z" />
|
||||
<glyph glyph-name="74" unicode=""
|
||||
d="M19 800h662c11 0 19 -8 19 -19v-331c0 -28 -22 -50 -50 -50h-600c-28 0 -50 22 -50 50v331c0 11 8 19 19 19zM0 309c16 -6 32 -9 50 -9h600c18 0 34 3 50 9v-290c0 -11 -8 -19 -19 -19h-662c-11 0 -19 8 -19 19v290zM550 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||
s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="75" unicode=""
|
||||
d="M0 700h300v-100h-50c-28 0 -50 -22 -50 -50v-150h300v150c0 28 -22 50 -50 50h-50v100h300v-100h-50c-28 0 -50 -22 -50 -50v-400c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50v150h-300v-150c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50
|
||||
v400c0 28 -22 50 -50 50h-50v100z" />
|
||||
<glyph glyph-name="76" unicode=""
|
||||
d="M400 700c165 0 300 -135 300 -300v-100h50c28 0 50 -22 50 -50v-200c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v350c0 111 -89 200 -200 200s-200 -89 -200 -200v-350c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v200c0 28 22 50 50 50h50v100
|
||||
c0 165 135 300 300 300z" />
|
||||
<glyph glyph-name="77" unicode=""
|
||||
d="M0 500c0 109 91 200 200 200s200 -91 200 -200c0 109 91 200 200 200s200 -91 200 -200c0 -55 -23 -105 -59 -141l-341 -340l-341 340c-36 36 -59 86 -59 141z" />
|
||||
<glyph glyph-name="78" unicode=""
|
||||
d="M400 700l400 -300l-100 3v-403h-200v200h-200v-200h-200v400h-100z" />
|
||||
<glyph glyph-name="79" unicode=""
|
||||
d="M0 800h800v-800h-800v800zM100 700v-300l100 100l400 -400h100v100l-200 200l100 100l100 -100v300h-600z" />
|
||||
<glyph glyph-name="7a" unicode=""
|
||||
d="M19 800h762c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-762c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 600v-300h100l100 -100h200l100 100h100v300h-600z" />
|
||||
<glyph glyph-name="7b" unicode=""
|
||||
d="M200 600c80 0 142 -56 200 -122c58 66 119 122 200 122c131 0 200 -101 200 -200s-69 -200 -200 -200c-81 0 -142 56 -200 122c-58 -66 -121 -122 -200 -122c-131 0 -200 101 -200 200s69 200 200 200zM200 500c-74 0 -100 -54 -100 -100s26 -100 100 -100
|
||||
c42 0 88 47 134 100c-46 53 -92 100 -134 100zM600 500c-43 0 -88 -47 -134 -100c46 -53 91 -100 134 -100c74 0 100 54 100 100s-26 100 -100 100z" />
|
||||
<glyph glyph-name="7c" unicode="" horiz-adv-x="400"
|
||||
d="M300 800c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100zM150 550c83 0 150 -69 150 -150c0 -66 -100 -214 -100 -250c0 -28 22 -50 50 -50s50 22 50 50h100c0 -83 -67 -150 -150 -150s-150 64 -150 150s100 222 100 250s-22 50 -50 50
|
||||
s-50 -22 -50 -50h-100c0 83 67 150 150 150z" />
|
||||
<glyph glyph-name="7d" unicode=""
|
||||
d="M200 800h500v-100h-122c-77 -197 -156 -392 -234 -588l-6 -12h162v-100h-500v100h122c77 197 156 392 234 588l7 12h-163v100z" />
|
||||
<glyph glyph-name="7e" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="7f" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="80" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="81" unicode=""
|
||||
d="M550 800c138 0 250 -112 250 -250s-112 -250 -250 -250c-16 0 -32 0 -47 3l-3 -3v-100h-200v-200h-300v200l303 303c-3 15 -3 31 -3 47c0 138 112 250 250 250zM600 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||
<glyph glyph-name="82" unicode=""
|
||||
d="M134 600h3h4h4h5h500c28 0 50 -22 50 -50v-350h100v-150c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v150h100v350v2c0 20 15 42 34 48zM200 500v-300h100v-100h200v100h100v300h-400z" />
|
||||
<glyph glyph-name="83" unicode=""
|
||||
d="M0 800h400v-400h-400v400zM500 600h100v-400h-400v100h300v300zM700 400h100v-400h-400v100h300v300z" />
|
||||
<glyph glyph-name="84" unicode="" horiz-adv-x="600"
|
||||
d="M337 694c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-300 -150c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49zM437 544c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-400 -200c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50
|
||||
c0 21 16 44 37 49zM437 344c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-106 -56c24 -4 43 -26 43 -50c0 -28 -23 -51 -51 -51c-2 0 -6 1 -8 1h-200c-26 1 -48 24 -48 50c0 16 12 36 26 44zM151 -50c0 23 20 50 46 50h3h4h5h100c28 0 50 -22 50 -50
|
||||
s-22 -50 -50 -50h-100c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||
<glyph glyph-name="85" unicode=""
|
||||
d="M199 800h100v-200h-200v100h100v100zM586 797h1c18 1 38 1 56 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0l-44 -44
|
||||
c-8 -13 -27 -24 -42 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l43 44c32 33 72 53 128 56zM208 490c4 5 14 16 22 16h3c2 0 6 1 8 1c28 0 50 -22 50 -50c0 -11 -6 -27 -14 -35l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0l44 44c8 13 27 24 42 24
|
||||
c28 0 50 -22 50 -50c0 -15 -11 -35 -24 -43l-43 -44c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281zM499 200h200v-100h-100v-100h-100v200z" />
|
||||
<glyph glyph-name="86" unicode=""
|
||||
d="M586 797c18 1 39 1 57 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-62 -62 -132 -81 -182 -78s-69 17 -84 25s-26 27 -26 44c0 28 22 51 50 51c8 0 19 -3 26 -7c0 0 15 -11 41 -13s62 3 106 47l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0
|
||||
c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43c32 33 72 53 128 56zM386 566c50 -2 64 -17 85 -22s37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11c0 0 -19 9 -47 10s-63 -4 -103 -44l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0
|
||||
c8 13 27 24 42 24c28 0 50 -22 50 -50c0 -15 -10 -35 -23 -43c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281l150 150c60 60 128 78 178 76z" />
|
||||
<glyph glyph-name="87" unicode=""
|
||||
d="M0 700h300v-300h-300v300zM400 700h400v-100h-400v100zM400 500h300v-100h-300v100zM0 300h300v-300h-300v300zM400 300h400v-100h-400v100zM400 100h300v-100h-300v100z" />
|
||||
<glyph glyph-name="88" unicode=""
|
||||
d="M50 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 700h600v-100h-600v100zM50 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 500h600v-100h-600v100zM50 300c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||
s22 50 50 50zM200 300h600v-100h-600v100zM50 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="89" unicode=""
|
||||
d="M800 800l-400 -800l-100 300l-300 100z" />
|
||||
<glyph glyph-name="8a" unicode="" horiz-adv-x="600"
|
||||
d="M300 700c110 0 200 -90 200 -200v-100h100v-400h-600v400h100v100c0 110 90 200 200 200zM300 600c-56 0 -100 -44 -100 -100v-100h200v100c0 56 -44 100 -100 100z" />
|
||||
<glyph glyph-name="8b" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c110 0 200 -90 200 -200v-200h100v-400h-600v400h400v200c0 56 -44 100 -100 100s-100 -44 -100 -100h-100c0 110 90 200 200 200z" />
|
||||
<glyph glyph-name="8c" unicode=""
|
||||
d="M400 700v-100c-111 0 -200 -89 -200 -200h100l-150 -200l-150 200h100c0 165 135 300 300 300zM650 600l150 -200h-100c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-100z" />
|
||||
<glyph glyph-name="8d" unicode=""
|
||||
d="M100 800h600v-300h100l-150 -250l-150 250h100v200h-400v-100h-100v200zM150 550l150 -250h-100v-200h400v100h100v-200h-600v300h-100z" />
|
||||
<glyph glyph-name="8e" unicode=""
|
||||
d="M600 700l200 -150l-200 -150v100h-500v-100h-100v100c0 55 45 100 100 100h500v100zM200 300v-100h500v100h100v-100c0 -55 -45 -100 -100 -100h-500v-100l-200 150z" />
|
||||
<glyph glyph-name="8f" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -60 -17 -117 -44 -166c5 -3 12 -8 16 -12l100 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 100c-4 3 -9 9 -12 13c-49 -26 -107 -41 -166 -41c-193 0 -350 157 -350 350s157 350 350 350zM350 200
|
||||
c142 0 250 108 250 250c0 139 -111 250 -250 250s-250 -111 -250 -250s111 -250 250 -250z" />
|
||||
<glyph glyph-name="90" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c166 0 300 -134 300 -300c0 -200 -300 -500 -300 -500s-300 300 -300 500c0 166 134 300 300 300zM300 700c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200z" />
|
||||
<glyph glyph-name="91" unicode="" horiz-adv-x="900"
|
||||
d="M0 800h800v-541c1 -3 1 -8 1 -11s0 -7 -1 -10v-238h-800v800zM495 250c0 26 22 50 50 50h5h150v400h-600v-600h600v100h-150h-5c-28 0 -50 22 -50 50zM350 600c83 0 150 -67 150 -150c0 -100 -150 -250 -150 -250s-150 150 -150 250c0 83 67 150 150 150zM350 500
|
||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="92" unicode="" horiz-adv-x="600"
|
||||
d="M0 700h200v-600h-200v600zM400 700h200v-600h-200v600z" />
|
||||
<glyph glyph-name="93" unicode="" horiz-adv-x="600"
|
||||
d="M0 700l600 -300l-600 -300v600z" />
|
||||
<glyph glyph-name="94" unicode="" horiz-adv-x="600"
|
||||
d="M300 700c166 0 300 -134 300 -300s-134 -300 -300 -300s-300 134 -300 300s134 300 300 300z" />
|
||||
<glyph glyph-name="95" unicode=""
|
||||
d="M400 700v-600l-400 300zM400 400l400 300v-600z" />
|
||||
<glyph glyph-name="96" unicode=""
|
||||
d="M0 700l400 -300l-400 -300v600zM400 100v600l400 -300z" />
|
||||
<glyph glyph-name="97" unicode=""
|
||||
d="M0 700h200v-600h-200v600zM200 400l500 300v-600z" />
|
||||
<glyph glyph-name="98" unicode=""
|
||||
d="M0 700l500 -300l-500 -300v600zM500 100v600h200v-600h-200z" />
|
||||
<glyph glyph-name="99" unicode="" horiz-adv-x="600"
|
||||
d="M0 700h600v-600h-600v600z" />
|
||||
<glyph glyph-name="9a" unicode=""
|
||||
d="M200 800h400v-200h200v-400h-200v-200h-400v200h-200v400h200v200z" />
|
||||
<glyph glyph-name="9b" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 403h800v-100h-800v100zM0 103h800v-100h-800v100z" />
|
||||
<glyph glyph-name="9c" unicode="" horiz-adv-x="600"
|
||||
d="M278 700c7 2 13 4 22 4c55 0 100 -45 100 -100v-4v-200c0 -55 -45 -100 -100 -100s-100 45 -100 100v200v2c0 44 35 88 78 98zM34 500h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-50c0 -111 89 -200 200 -200s200 89 200 200v50c0 28 22 50 50 50s50 -22 50 -50v-50
|
||||
c0 -148 -109 -270 -250 -294v-106h50c55 0 100 -45 100 -100h-400c0 55 45 100 100 100h50v106c-141 24 -250 146 -250 294v50v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="9d" unicode=""
|
||||
d="M0 500h800v-200h-800v200z" />
|
||||
<glyph glyph-name="9e" unicode=""
|
||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-500c0 -28 -22 -50 -50 -50h-250v-100h100c55 0 100 -45 100 -100h-600c0 55 45 100 100 100h100v100h-250c-28 0 -50 22 -50 50v500v2c0 20 15 42 34 48zM100 600v-400h600v400h-600z" />
|
||||
<glyph glyph-name="9f" unicode=""
|
||||
d="M272 700c-14 -40 -22 -83 -22 -128c0 -221 179 -400 400 -400c45 0 88 8 128 22c-53 -158 -202 -272 -378 -272c-221 0 -400 179 -400 400c0 176 114 325 272 378z" />
|
||||
<glyph glyph-name="a0" unicode=""
|
||||
d="M350 700l150 -150h-100v-150h150v100l150 -150l-150 -150v100h-150v-150h100l-150 -150l-150 150h100v150h-150v-100l-150 150l150 150v-100h150v150h-100z" />
|
||||
<glyph glyph-name="a1" unicode=""
|
||||
d="M800 800v-550c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v206c-201 -6 -327 -27 -400 -50v-397c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v409s100 100 600 100z" />
|
||||
<glyph glyph-name="a2" unicode="" horiz-adv-x="700"
|
||||
d="M499 700c51 0 102 -20 141 -59c78 -78 78 -203 0 -281l-250 -244c-48 -48 -127 -48 -175 0s-48 127 0 175l96 97l69 -69l-90 -94l-7 -3c-10 -10 -10 -28 0 -38s28 -10 38 0l250 247c37 40 39 102 0 141s-104 40 -144 0l-278 -275c-66 -69 -68 -179 0 -247
|
||||
c69 -69 181 -69 250 0l9 12l116 113l69 -69l-125 -125c-107 -107 -281 -107 -388 0s-107 281 0 388l278 272c39 39 90 59 141 59z" />
|
||||
<glyph glyph-name="a3" unicode=""
|
||||
d="M600 800l200 -200l-100 -100l-200 200zM400 600l200 -200l-400 -400h-200v200z" />
|
||||
<glyph glyph-name="a4" unicode=""
|
||||
d="M550 800c83 0 150 -90 150 -200s-67 -200 -150 -200c-22 0 -40 8 -59 19c6 26 9 52 9 81c0 84 -27 158 -72 212c27 52 71 88 122 88zM250 700c83 0 150 -90 150 -200s-67 -200 -150 -200s-150 90 -150 200s67 200 150 200zM725 384c44 -22 75 -66 75 -118v-166h-200v66
|
||||
c0 50 -17 96 -44 134c66 2 126 33 169 84zM75 284c45 -53 106 -84 175 -84s130 31 175 84c44 -22 75 -66 75 -118v-166h-500v166c0 52 31 96 75 118z" />
|
||||
<glyph glyph-name="a5" unicode=""
|
||||
d="M400 800c110 0 200 -112 200 -250s-90 -250 -200 -250s-200 112 -200 250s90 250 200 250zM191 300c54 -61 128 -100 209 -100s155 39 209 100c106 -5 191 -92 191 -200v-100h-800v100c0 108 85 195 191 200z" />
|
||||
<glyph glyph-name="a6" unicode="" horiz-adv-x="600"
|
||||
d="M19 800h462c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-462c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 700v-500h300v500h-300zM250 150c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="a7" unicode=""
|
||||
d="M350 800c17 0 34 -1 50 -3v-397l-297 297c63 64 150 103 247 103zM500 694c169 -25 300 -168 300 -344c0 -193 -157 -350 -350 -350c-85 0 -161 31 -222 81l272 272v341zM91 562l237 -234l-212 -212c-70 55 -116 138 -116 234c0 84 35 158 91 212z" />
|
||||
<glyph glyph-name="a8" unicode=""
|
||||
d="M92 650c0 23 20 50 46 50h3h4h5h400c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-200h100c55 0 100 -45 100 -100h-300v-300l-56 -100l-44 100v300h-300c0 55 45 100 100 100h100v200h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||
<glyph glyph-name="a9" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 600v-400l300 200z" />
|
||||
<glyph glyph-name="aa" unicode=""
|
||||
d="M300 800h200v-300h300v-200h-300v-300h-200v300h-300v200h300v300z" />
|
||||
<glyph glyph-name="ab" unicode=""
|
||||
d="M300 800h100v-400h-100v400zM172 656l62 -78l-40 -31c-58 -46 -94 -117 -94 -197c0 -139 111 -250 250 -250s250 111 250 250c0 80 -39 151 -97 197l-37 31l62 78l38 -31c82 -64 134 -164 134 -275c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 111 53 211 134 275z
|
||||
" />
|
||||
<glyph glyph-name="ac" unicode=""
|
||||
d="M200 800h400v-200h-400v200zM9 500h782c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-91v200h-600v-200h-91c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM200 300h400v-300h-400v300z" />
|
||||
<glyph glyph-name="ad" unicode=""
|
||||
d="M0 700h100v-700h-100v700zM700 700h100v-700h-100v700zM200 600h200v-100h-200v100zM300 400h200v-100h-200v100zM400 200h200v-100h-200v100z" />
|
||||
<glyph glyph-name="ae" unicode=""
|
||||
d="M325 700c42 -141 87 -280 131 -419c29 74 59 148 88 222c30 -57 58 -114 87 -172h169v-100h-231l-13 28c-37 -92 -74 -184 -112 -275c-38 129 -79 257 -119 385c-42 -133 -83 -267 -125 -400c-28 88 -56 175 -84 262h-116v100h188l9 -34l3 -6c42 137 83 273 125 409z" />
|
||||
<glyph glyph-name="af" unicode=""
|
||||
d="M200 600c0 57 43 100 100 100s100 -43 100 -100c0 -28 -18 -48 -28 -72c-3 -6 -3 -16 -3 -28h231v-231c12 0 22 0 28 3c24 10 44 28 72 28c57 0 100 -43 100 -100s-43 -100 -100 -100c-28 0 -48 18 -72 28c-6 3 -16 3 -28 3v-231h-231c0 12 0 22 3 28c10 24 28 44 28 72
|
||||
c0 57 -43 100 -100 100s-100 -43 -100 -100c0 -28 18 -48 28 -72c3 -6 3 -16 3 -28h-231v600h231c0 12 0 22 -3 28c-10 24 -28 44 -28 72z" />
|
||||
<glyph glyph-name="b0" unicode="" horiz-adv-x="500"
|
||||
d="M247 700c84 0 148 -20 191 -59s59 -93 59 -141c0 -117 -69 -181 -119 -225s-81 -67 -81 -150v-25h-100v25c0 117 65 181 115 225s85 67 85 150c0 25 -8 48 -28 66s-56 34 -122 34s-97 -18 -116 -37s-27 -43 -31 -69l-100 12c5 38 19 88 59 128s103 66 188 66zM197 0h100
|
||||
v-100h-100v100z" />
|
||||
<glyph glyph-name="b1" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -69 -48 -127 -112 -144c-22 55 -75 94 -138 94c-20 0 -39 -5 -56 -12c-17 64 -75 112 -144 112s-127 -48 -144 -112c-17 7 -36 12 -56 12c-37 0 -71 -12 -97 -34c-33 36 -53 82 -53 134
|
||||
c0 110 90 200 200 200c23 114 129 200 250 200zM334 300h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-200c0 -28 -22 -50 -50 -50s-50 22 -50 50v200v2c0 20 15 42 34 48zM134 200h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2
|
||||
c0 20 15 42 34 48zM534 200h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="b2" unicode=""
|
||||
d="M600 800l200 -150l-200 -150v100h-50l-153 -191l175 -206l6 -3h22v100l200 -150l-200 -150v100h-25c-35 0 -56 12 -78 38l-166 190l-153 -190c-22 -27 -43 -38 -78 -38h-100v100h100l166 206l-163 191l-3 3h-100v100h100c34 0 56 -12 78 -38l153 -178l141 178
|
||||
c22 27 43 38 78 38h50v100z" />
|
||||
<glyph glyph-name="b3" unicode=""
|
||||
d="M400 800c110 0 209 -47 281 -119l119 119v-300h-300l109 109c-54 55 -126 91 -209 91c-166 0 -300 -134 -300 -300s134 -300 300 -300c83 0 158 34 212 88l72 -72c-72 -72 -174 -116 -284 -116c-220 0 -400 180 -400 400s180 400 400 400z" />
|
||||
<glyph glyph-name="b4" unicode=""
|
||||
d="M400 800h400v-400l-166 166l-400 -400l166 -166h-400v400l166 -166l400 400z" />
|
||||
<glyph glyph-name="b5" unicode="" horiz-adv-x="600"
|
||||
d="M250 800l250 -300h-200v-200h200l-250 -300l-250 300h200v200h-200z" />
|
||||
<glyph glyph-name="b6" unicode=""
|
||||
d="M300 600v-200h200v200l300 -250l-300 -250v200h-200v-200l-300 250z" />
|
||||
<glyph glyph-name="b7" unicode=""
|
||||
d="M0 800c441 0 800 -359 800 -800h-200c0 333 -267 600 -600 600v200zM0 500c275 0 500 -225 500 -500h-200c0 167 -133 300 -300 300v200zM0 200c110 0 200 -90 200 -200h-200v200z" />
|
||||
<glyph glyph-name="b8" unicode=""
|
||||
d="M100 800c386 0 700 -314 700 -700h-100c0 332 -268 600 -600 600v100zM100 600c276 0 500 -224 500 -500h-100c0 222 -178 400 -400 400v100zM100 400c165 0 300 -135 300 -300h-100c0 111 -89 200 -200 200v100zM100 200c55 0 100 -45 100 -100s-45 -100 -100 -100
|
||||
s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="b9" unicode=""
|
||||
d="M300 800h400c55 0 100 -45 100 -100v-200h-400v150c0 28 -22 50 -50 50s-50 -22 -50 -50v-250h400v-300c0 -55 -45 -100 -100 -100h-500c-55 0 -100 45 -100 100v200h100v-150c0 -28 22 -50 50 -50s50 22 50 50v550c0 55 45 100 100 100z" />
|
||||
<glyph glyph-name="ba" unicode=""
|
||||
d="M75 700h225v-100h-200v-500h400v100h100v-125c0 -41 -34 -75 -75 -75h-450c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM600 700l200 -200l-200 -200v100h-200c-94 0 -173 -65 -194 -153c23 199 189 353 394 353v100z" />
|
||||
<glyph glyph-name="bb" unicode=""
|
||||
d="M500 700l300 -284l-300 -316v200h-100c-200 0 -348 -102 -400 -300c0 295 100 500 500 500v200z" />
|
||||
<glyph glyph-name="bc" unicode=""
|
||||
d="M381 791l19 9l19 -9c127 -53 253 -108 381 -160v-31c0 -166 -67 -313 -147 -419c-40 -53 -83 -97 -125 -128s-82 -53 -128 -53s-86 22 -128 53s-85 75 -125 128c-80 107 -147 253 -147 419v31c128 52 254 107 381 160zM400 100v591l-294 -122c8 -126 58 -243 122 -328
|
||||
c35 -46 73 -86 106 -110s62 -31 66 -31z" />
|
||||
<glyph glyph-name="bd" unicode=""
|
||||
d="M600 800h100v-800h-100v800zM400 700h100v-700h-100v700zM200 500h100v-500h-100v500zM0 300h100v-300h-100v300z" />
|
||||
<glyph glyph-name="be" unicode=""
|
||||
d="M300 800h100v-200h200l100 -100l-100 -100h-200v-400h-100v500h-200l-100 100l100 100h200v100z" />
|
||||
<glyph glyph-name="bf" unicode=""
|
||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h200v-100h-200v100zM400 600h300v-100h-300v100zM400 400h400v-100h-400v100z" />
|
||||
<glyph glyph-name="c0" unicode=""
|
||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h400v-100h-400v100zM400 600h300v-100h-300v100zM400 400h200v-100h-200v100z" />
|
||||
<glyph glyph-name="c1" unicode=""
|
||||
d="M75 700h650c41 0 75 -34 75 -75v-550c0 -41 -34 -75 -75 -75h-650c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM100 600v-100h100v100h-100zM300 600v-100h400v100h-400zM100 400v-100h100v100h-100zM300 400v-100h400v100h-400zM100 200v-100h100v100h-100zM300 200
|
||||
v-100h400v100h-400z" />
|
||||
<glyph glyph-name="c2" unicode=""
|
||||
d="M400 800l100 -300h300l-250 -200l100 -300l-250 200l-250 -200l100 300l-250 200h300z" />
|
||||
<glyph glyph-name="c3" unicode=""
|
||||
d="M400 800c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM650 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 600c110 0 200 -90 200 -200
|
||||
s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM50 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM750 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||
s22 50 50 50zM650 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="c4" unicode=""
|
||||
d="M34 800h632c18 0 34 -16 34 -34v-732c0 -18 -16 -34 -34 -34h-632c-18 0 -34 16 -34 34v732c0 18 16 34 34 34zM100 700v-500h500v500h-500zM350 150c-38 0 -63 -42 -44 -75s69 -33 88 0s-6 75 -44 75z" />
|
||||
<glyph glyph-name="c5" unicode=""
|
||||
d="M0 800h300l500 -500l-300 -300l-500 500v300zM200 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||
<glyph glyph-name="c6" unicode=""
|
||||
d="M0 600h200l300 -300l-200 -200l-300 300v200zM340 600h160l300 -300l-200 -200l-78 78l119 122zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="c7" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200
|
||||
s90 200 200 200zM400 500c-56 0 -100 -44 -100 -100s44 -100 100 -100s100 44 100 100s-44 100 -100 100z" />
|
||||
<glyph glyph-name="c8" unicode=""
|
||||
d="M0 700h559l-100 -100h-359v-500h500v159l100 100v-359h-700v700zM700 700l100 -100l-400 -400l-200 200l100 100l100 -100z" />
|
||||
<glyph glyph-name="c9" unicode=""
|
||||
d="M9 800h782c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM150 722l-72 -72l100 -100l-100 -100l72 -72l172 172zM400 500v-100h300v100h-300z" />
|
||||
<glyph glyph-name="ca" unicode=""
|
||||
d="M0 800h800v-200h-50c0 55 -45 100 -100 100h-150v-550c0 -28 22 -50 50 -50h50v-100h-400v100h50c28 0 50 22 50 50v550h-150c-55 0 -100 -45 -100 -100h-50v200z" />
|
||||
<glyph glyph-name="cb" unicode=""
|
||||
d="M0 700h100v-400h-100v400zM200 700h350c21 0 39 -13 47 -31c0 0 103 -291 103 -319s-22 -50 -50 -50h-150c-28 0 -50 -25 -50 -50s39 -158 47 -184s-5 -55 -31 -63s-52 5 -66 31s-109 219 -128 238s-44 28 -72 28v400z" />
|
||||
<glyph glyph-name="cc" unicode=""
|
||||
d="M400 666c10 19 28 32 47 34l19 -3c26 -8 39 -37 31 -63s-47 -159 -47 -184s22 -50 50 -50h150c28 0 50 -22 50 -50s-103 -319 -103 -319c-8 -18 -26 -31 -47 -31h-350v400c28 0 53 9 72 28s114 212 128 238zM0 400h100v-400h-100v400z" />
|
||||
<glyph glyph-name="cd" unicode=""
|
||||
d="M200 700h300v-100h-100v-6c25 -4 50 -8 72 -16l-34 -94c-28 11 -58 16 -88 16c-139 0 -250 -111 -250 -250s111 -250 250 -250s250 111 250 250c0 31 -5 60 -16 88l91 37c14 -38 25 -81 25 -125c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 176 130 323 300 347v3
|
||||
h-100v100zM700 584c0 0 -296 -348 -316 -368s-48 -20 -68 0s-20 48 0 68s384 300 384 300z" />
|
||||
<glyph glyph-name="ce" unicode=""
|
||||
d="M600 700l200 -150l-200 -150v100h-600v100h600v100zM200 300v-100h600v-100h-600v-100l-200 150z" />
|
||||
<glyph glyph-name="cf" unicode=""
|
||||
d="M300 800h100c55 0 100 -45 100 -100h100c55 0 100 -45 100 -100h-700c0 55 45 100 100 100h100c0 55 45 100 100 100zM100 500h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-481c0 -11 -8 -19 -19 -19h-462
|
||||
c-11 0 -19 8 -19 19v481z" />
|
||||
<glyph glyph-name="d0" unicode=""
|
||||
d="M100 800h200v-400c0 -55 45 -100 100 -100s100 45 100 100v400h100v-400c0 -110 -90 -200 -200 -200h-50c-138 0 -250 90 -250 200v400zM0 100h700v-100h-700v100z" />
|
||||
<glyph glyph-name="d1" unicode=""
|
||||
d="M9 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM609 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282
|
||||
c0 6 3 9 9 9zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="d2" unicode=""
|
||||
d="M10 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 4 9 10 9zM610 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 5 9 10 9zM310 600h181c6 0 9 -3 9 -9v-91h-200v91c0 6 4 9 10 9zM0 400h800v-100h-800v100zM0 200h200v-191c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v191zM300 200
|
||||
h200v-91c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v91zM600 200h200v-191c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v191z" />
|
||||
<glyph glyph-name="d3" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM9 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM609 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182
|
||||
c-6 0 -9 3 -9 9v482c0 6 3 9 9 9z" />
|
||||
<glyph glyph-name="d4" unicode=""
|
||||
d="M50 600h500c28 0 50 -22 50 -50v-150l100 100h100v-300h-100l-100 100v-150c0 -28 -22 -50 -50 -50h-500c-28 0 -50 22 -50 50v400c0 28 22 50 50 50z" />
|
||||
<glyph glyph-name="d5" unicode=""
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 600v100c26 0 52 -4 75 -10c130 -33 225 -150 225 -290s-95 -258 -225 -291h-3c-23 -6 -47 -9 -72 -9v100c17 0 34 2 50 6c86 22 150 100 150 194s-64 172 -150 194c-16 4 -33 6 -50 6zM500 500l25 -3
|
||||
c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||
<glyph glyph-name="d6" unicode="" horiz-adv-x="600"
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 500l25 -3c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||
<glyph glyph-name="d7" unicode="" horiz-adv-x="400"
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200z" />
|
||||
<glyph glyph-name="d8" unicode=""
|
||||
d="M309 800h82c6 0 10 -4 12 -9l294 -682l3 -19v-81c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v81l3 19l294 682c2 5 6 9 12 9zM300 500v-200h100v200h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="d9" unicode=""
|
||||
d="M375 800c138 0 269 -39 378 -109l-53 -82c-93 60 -205 91 -325 91c-119 0 -229 -32 -322 -91l-53 82c109 70 237 109 375 109zM375 500c78 0 154 -23 216 -62l-53 -85c-46 30 -104 47 -163 47c-60 0 -112 -17 -159 -47l-54 85c62 40 134 62 213 62zM375 200
|
||||
c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="da" unicode="" horiz-adv-x="900"
|
||||
d="M551 800c16 0 32 0 47 -3l-97 -97v-200h200l97 97c3 -15 3 -31 3 -47c0 -138 -112 -250 -250 -250c-32 0 -62 8 -90 19l-288 -291c-20 -20 -46 -28 -72 -28s-52 8 -72 28c-39 39 -39 105 0 144l291 287c-11 28 -19 59 -19 91c0 138 112 250 250 250zM101 150
|
||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="db" unicode=""
|
||||
d="M141 700c84 -84 169 -167 253 -250c82 83 167 165 247 250l143 -141l-253 -253c84 -82 167 -166 253 -247l-143 -143c-81 86 -165 169 -247 253l-253 -253l-141 143c85 80 167 164 250 247c-83 84 -166 169 -250 253z" />
|
||||
<glyph glyph-name="dc" unicode=""
|
||||
d="M0 800h100l231 -300h38l231 300h100l-225 -300h225v-100h-300v-100h300v-100h-300v-200h-100v200h-300v100h300v100h-300v100h225z" />
|
||||
<glyph glyph-name="dd" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM300 600h100v-100h100v-100h-100v-100h-100v100h-100v100h100v100z" />
|
||||
<glyph glyph-name="de" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM200 500h300v-100h-300v100z" />
|
||||
</font>
|
||||
</defs></svg>
|
After Width: | Height: | Size: 54 KiB |
0
public/assets/fonts/open-iconic.ttf
Normal file
0
public/assets/fonts/open-iconic.ttf
Normal file
0
public/assets/fonts/open-iconic.woff
Normal file
0
public/assets/fonts/open-iconic.woff
Normal file
BIN
public/assets/images/default-profile-sm.jpg
Normal file
BIN
public/assets/images/default-profile-sm.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 325 B |
BIN
public/assets/images/default-profile.jpg
Normal file
BIN
public/assets/images/default-profile.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 469 B |
BIN
public/assets/images/friendica-32.png
Normal file
BIN
public/assets/images/friendica-32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
36
public/index.php
Normal file
36
public/index.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
if (PHP_SAPI == 'cli-server') {
|
||||
// To help the built-in PHP dev server, check if the request was actually for
|
||||
// something which should probably be served as a static file
|
||||
$url = parse_url($_SERVER['REQUEST_URI']);
|
||||
$file = __DIR__ . $url['path'];
|
||||
if (is_file($file)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ini_set('error_log', __DIR__ . '/../logs/http.log');
|
||||
ini_set('log_errors', true);
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
session_start();
|
||||
|
||||
// Instantiate the app
|
||||
$settings = require __DIR__ . '/../src/settings.php';
|
||||
|
||||
$container = new Slim\Container($settings);
|
||||
|
||||
// Set up dependencies
|
||||
require __DIR__ . '/../src/dependencies.php';
|
||||
|
||||
$app = new \Slim\App($container);
|
||||
|
||||
// Register middleware
|
||||
require __DIR__ . '/../src/middleware.php';
|
||||
|
||||
// Register routes
|
||||
require __DIR__ . '/../src/routes.php';
|
||||
|
||||
// Run app
|
||||
$app->run();
|
141
src/classes/Content/L10n.php
Normal file
141
src/classes/Content/L10n.php
Normal file
|
@ -0,0 +1,141 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Content;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class L10n
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $lang;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $strings;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $lang_path;
|
||||
|
||||
public function __construct(string $language = 'en', string $lang_path = '')
|
||||
{
|
||||
$this->lang = $language;
|
||||
$this->lang_path = $lang_path;
|
||||
|
||||
$this->loadTranslationTable();
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads string translation table
|
||||
*
|
||||
* First addon strings are loaded, then globals
|
||||
*
|
||||
* Uses an App object shim since all the strings files refer to $a->strings
|
||||
*
|
||||
* @param string $lang language code to load
|
||||
*/
|
||||
private function loadTranslationTable(): void
|
||||
{
|
||||
if (file_exists($this->lang_path . '/' . $this->lang . '/strings.php')) {
|
||||
$this->strings = include $this->lang_path . '/' . $this->lang . '/strings.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the localized version of a singular/plural string with optional string interpolation
|
||||
*
|
||||
* This function takes two english strings as parameters, singular and plural, as
|
||||
* well as a count. If a localized version exists for the current language, they
|
||||
* are used instead. Discrimination between singular and plural is done using the
|
||||
* localized function if any or the default one. Finally, a string interpolation
|
||||
* is performed using the count as parameter.
|
||||
*
|
||||
* Usages:
|
||||
* - L10n::tt('Like', 'Likes', $count)
|
||||
* - L10n::tt("%s user deleted", "%s users deleted", count($users))
|
||||
*
|
||||
* @param string $singular
|
||||
* @param string $plural
|
||||
* @param int $count
|
||||
* @return string
|
||||
*/
|
||||
public function tt(string $singular, string $plural, int $count): string
|
||||
{
|
||||
if (!empty($this->strings[$singular])) {
|
||||
$t = $this->strings[$singular];
|
||||
if (is_array($t)) {
|
||||
$plural_function = 'string_plural_select_' . str_replace('-', '_', $this->lang);
|
||||
if (function_exists($plural_function)) {
|
||||
$i = $plural_function($count);
|
||||
} else {
|
||||
$i = $this->stringPluralSelectDefault($count);
|
||||
}
|
||||
|
||||
// for some languages there is only a single array item
|
||||
if (!isset($t[$i])) {
|
||||
$s = $t[0];
|
||||
} else {
|
||||
$s = $t[$i];
|
||||
}
|
||||
} else {
|
||||
$s = $t;
|
||||
}
|
||||
} elseif ($this->stringPluralSelectDefault($count)) {
|
||||
$s = $plural;
|
||||
} else {
|
||||
$s = $singular;
|
||||
}
|
||||
|
||||
$s = @sprintf($s, $count);
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the localized version of the provided string with optional string interpolation
|
||||
*
|
||||
* This function takes a english string as parameter, and if a localized version
|
||||
* exists for the current language, substitutes it before performing an eventual
|
||||
* string interpolation (sprintf) with additional optional arguments.
|
||||
*
|
||||
* Usages:
|
||||
* - L10n::t('This is an example')
|
||||
* - L10n::t('URL %s returned no result', $url)
|
||||
* - L10n::t('Current version: %s, new version: %s', $current_version, $new_version)
|
||||
*
|
||||
* @param string $s
|
||||
* @param array $vars Variables to interpolate in the translation string
|
||||
* @return string
|
||||
*/
|
||||
public function t($s, ...$vars): string
|
||||
{
|
||||
if (empty($s)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (!empty($this->strings[$s])) {
|
||||
$t = $this->strings[$s];
|
||||
$s = is_array($t) ? $t[0] : $t;
|
||||
}
|
||||
|
||||
if (count($vars) > 0) {
|
||||
$s = sprintf($s, ...$vars);
|
||||
}
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide a fallback which will not collide with a function defined in any language file
|
||||
*/
|
||||
private function stringPluralSelectDefault(int $n): bool
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
|
||||
}
|
285
src/classes/Content/Pager.php
Normal file
285
src/classes/Content/Pager.php
Normal file
|
@ -0,0 +1,285 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Content;
|
||||
|
||||
/**
|
||||
* The Pager has two very different output, Minimal and Full, see renderMinimal() and renderFull() for more details.
|
||||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Pager
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $page = 1;
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $itemsPerPage = 50;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $baseQueryString = '';
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
|
||||
/**
|
||||
* Instantiates a new Pager with the base parameters.
|
||||
*
|
||||
* Guesses the page number from the GET parameter 'page'.
|
||||
*
|
||||
* @param \Friendica\Directory\Content\L10n $l10n
|
||||
* @param \Psr\Http\Message\ServerRequestInterface $request
|
||||
* @param integer $itemsPerPage An optional number of items per page to override the default value
|
||||
*/
|
||||
public function __construct(L10n $l10n, \Psr\Http\Message\ServerRequestInterface $request, int $itemsPerPage = 50)
|
||||
{
|
||||
$this->l10n = $l10n;
|
||||
$this->setQueryString($request);
|
||||
$this->setItemsPerPage($itemsPerPage);
|
||||
$this->setPage(filter_input(INPUT_GET, 'page', FILTER_SANITIZE_NUMBER_INT));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the start offset for a LIMIT clause. Starts at 0.
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getStart()
|
||||
{
|
||||
return max(0, ($this->page * $this->itemsPerPage) - $this->itemsPerPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of items per page
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getItemsPerPage()
|
||||
{
|
||||
return $this->itemsPerPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current page number
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getPage(): int
|
||||
{
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the base query string.
|
||||
*
|
||||
* Warning: this isn't the same value as passed to the constructor.
|
||||
* See setQueryString() for the inventory of transformations
|
||||
*
|
||||
* @see setBaseQuery()
|
||||
* @return string
|
||||
*/
|
||||
public function getBaseQueryString(): string
|
||||
{
|
||||
return $this->baseQueryString;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the number of items per page, 1 minimum.
|
||||
*
|
||||
* @param integer $itemsPerPage
|
||||
*/
|
||||
public function setItemsPerPage($itemsPerPage): void
|
||||
{
|
||||
$this->itemsPerPage = max(1, intval($itemsPerPage));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current page number. Starts at 1.
|
||||
*
|
||||
* @param integer $page
|
||||
*/
|
||||
public function setPage($page): void
|
||||
{
|
||||
$this->page = max(1, intval($page));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the base query string from a full query string.
|
||||
*
|
||||
* Strips the 'page' parameter, and remove the 'q=' string for some reason.
|
||||
*
|
||||
* @param \Psr\Http\Message\ServerRequestInterface $request
|
||||
*/
|
||||
public function setQueryString(\Psr\Http\Message\ServerRequestInterface $request): void
|
||||
{
|
||||
$queryParams = $request->getQueryParams();
|
||||
unset($queryParams['page']);
|
||||
|
||||
$this->baseQueryString = $request->getUri()->getPath() . ($queryParams ? '?' . http_build_query($queryParams) : '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures the provided URI has its query string punctuation in order.
|
||||
*
|
||||
* @param string $uri
|
||||
* @return string
|
||||
*/
|
||||
private function ensureQueryParameter($uri)
|
||||
{
|
||||
if (strpos($uri, '?') === false && ($pos = strpos($uri, '&')) !== false) {
|
||||
$uri = substr($uri, 0, $pos) . '?' . substr($uri, $pos + 1);
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Minimal pager (newer/older)
|
||||
*
|
||||
* This mode is intended for reverse chronological pages and presents only two links, newer (previous) and older (next).
|
||||
* The itemCount is the number of displayed items. If no items are displayed, the older button is disabled.
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* $pager = new Pager($a->query_string);
|
||||
*
|
||||
* $params = ['order' => ['sort_field' => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
* $items = DBA::toArray(DBA::select($table, $fields, $condition, $params));
|
||||
*
|
||||
* $html = $pager->renderMinimal(count($items));
|
||||
*
|
||||
* @param integer $itemCount The number of displayed items on the page
|
||||
* @return array of links
|
||||
*/
|
||||
public function renderMinimal(int $itemCount, string $previous_label = 'Previous', string $next_label = 'Next')
|
||||
{
|
||||
$displayedItemCount = max(0, $itemCount);
|
||||
|
||||
$data = [
|
||||
'class' => 'pager',
|
||||
'prev' => [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . ($this->getPage() - 1)),
|
||||
'text' => $this->l10n->t($previous_label),
|
||||
'class' => 'previous' . ($this->getPage() == 1 ? ' disabled' : '')
|
||||
],
|
||||
'next' => [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . ($this->getPage() + 1)),
|
||||
'text' => $this->l10n->t($next_label),
|
||||
'class' => 'next' . ($displayedItemCount <= 0 ? ' disabled' : '')
|
||||
]
|
||||
];
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Full pager (first / prev / 1 / 2 / ... / 14 / 15 / next / last)
|
||||
*
|
||||
* This mode presents page numbers as well as first, previous, next and last links.
|
||||
* The itemCount is the total number of items including those not displayed.
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* $total = DBA::count($table, $condition);
|
||||
*
|
||||
* $pager = new Pager($a->query_string, $total);
|
||||
*
|
||||
* $params = ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
* $items = DBA::toArray(DBA::select($table, $fields, $condition, $params));
|
||||
*
|
||||
* $html = $pager->renderFull();
|
||||
*
|
||||
* @param integer $itemCount The total number of items including those note displayed on the page
|
||||
* @return array of links
|
||||
*/
|
||||
public function renderFull($itemCount)
|
||||
{
|
||||
$totalItemCount = max(0, intval($itemCount));
|
||||
|
||||
$data = [];
|
||||
|
||||
$data['class'] = 'pagination';
|
||||
if ($totalItemCount > $this->getItemsPerPage()) {
|
||||
$data['first'] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=1'),
|
||||
'text' => $this->l10n->t('First'),
|
||||
'class' => $this->getPage() == 1 ? 'disabled' : ''
|
||||
];
|
||||
$data['prev'] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . ($this->getPage() - 1)),
|
||||
'text' => $this->l10n->t('Previous'),
|
||||
'class' => $this->getPage() == 1 ? 'disabled' : ''
|
||||
];
|
||||
|
||||
$numpages = $totalItemCount / $this->getItemsPerPage();
|
||||
|
||||
$numstart = 1;
|
||||
$numstop = $numpages;
|
||||
|
||||
$numpages_limit = 6;
|
||||
|
||||
// Limit the number of displayed page number buttons.
|
||||
if ($numpages > $numpages_limit) {
|
||||
$numstart = (($this->getPage() > $numpages_limit / 2) ? ($this->getPage() - $numpages_limit / 2) : 1);
|
||||
$numstop = (($this->getPage() > ($numpages - $numpages_limit)) ? $numpages : ($numstart + $numpages_limit - 1));
|
||||
}
|
||||
|
||||
$pages = [];
|
||||
|
||||
for ($i = $numstart; $i <= $numstop; $i++) {
|
||||
if ($i == $this->getPage()) {
|
||||
$pages[$i] = [
|
||||
'url' => '#',
|
||||
'text' => $i,
|
||||
'class' => 'current active'
|
||||
];
|
||||
} else {
|
||||
$pages[$i] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . $i),
|
||||
'text' => $i,
|
||||
'class' => 'n'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
if (($totalItemCount % $this->getItemsPerPage()) != 0) {
|
||||
if ($i == $this->getPage()) {
|
||||
$pages[$i] = [
|
||||
'url' => '#',
|
||||
'text' => $i,
|
||||
'class' => 'current active'
|
||||
];
|
||||
} else {
|
||||
$pages[$i] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . $i),
|
||||
'text' => $i,
|
||||
'class' => 'n'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
$data['pages'] = $pages;
|
||||
|
||||
$lastpage = (($numpages > intval($numpages)) ? intval($numpages) + 1 : $numpages);
|
||||
|
||||
$data['next'] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . ($this->getPage() + 1)),
|
||||
'text' => $this->l10n->t('Next'),
|
||||
'class' => $this->getPage() == $lastpage ? 'disabled' : ''
|
||||
];
|
||||
$data['last'] = [
|
||||
'url' => $this->ensureQueryParameter($this->baseQueryString . '&page=' . $lastpage),
|
||||
'text' => $this->l10n->t('Last'),
|
||||
'class' => $this->getPage() == $lastpage ? 'disabled' : ''
|
||||
];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
79
src/classes/Controllers/Api/Search.php
Normal file
79
src/classes/Controllers/Api/Search.php
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Api;
|
||||
|
||||
use \Friendica\Directory\Content\Pager;
|
||||
use PDO;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Search
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Profile
|
||||
*/
|
||||
private $profileModel;
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\Profile $profileModel,
|
||||
\Friendica\Directory\Content\L10n $l10n
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profileModel = $profileModel;
|
||||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
public function render(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
$pager = new Pager($this->l10n, $request, 20);
|
||||
|
||||
$originalQuery = $query = filter_input(INPUT_GET, 'q');
|
||||
|
||||
$field = filter_input(INPUT_GET, 'field', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW & FILTER_FLAG_STRIP_HIGH);
|
||||
|
||||
if ($field) {
|
||||
$query .= '%';
|
||||
$sql_where = '`' . $field . '` LIKE :query';
|
||||
} else {
|
||||
$sql_where = "MATCH (p.`name`, p.`pdesc`, p.`profile_url`, p.`locality`, p.`region`, p.`country`, p.`tags` )
|
||||
AGAINST (:query IN BOOLEAN MODE)";
|
||||
}
|
||||
|
||||
$values = ['query' => $query];
|
||||
|
||||
$account_type = $args['account_type'] ?? 'All';
|
||||
if ($account_type != 'All') {
|
||||
$sql_where .= '
|
||||
AND `account_type` = :account_type';
|
||||
$values['account_type'] = $account_type;
|
||||
}
|
||||
|
||||
$profiles = $this->profileModel->getListForDisplay($pager->getItemsPerPage(), $pager->getStart(), $sql_where, $values);
|
||||
|
||||
$count = $this->profileModel->getCountForDisplay($sql_where, $values);
|
||||
|
||||
$vars = [
|
||||
'query' => $originalQuery,
|
||||
'page' => $pager->getPage(),
|
||||
'itemsperpage' => $pager->getItemsPerPage(),
|
||||
'count' => $count,
|
||||
'profiles' => $profiles
|
||||
];
|
||||
|
||||
// Render index view
|
||||
return $response->withJson($vars);
|
||||
}
|
||||
}
|
80
src/classes/Controllers/Api/Submit.php
Normal file
80
src/classes/Controllers/Api/Submit.php
Normal file
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Api;
|
||||
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Submit
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\ProfilePollQueue
|
||||
*/
|
||||
private $profilePollQueueModel;
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\ProfilePollQueue $profilePollQueueModel,
|
||||
\Psr\Log\LoggerInterface $logger
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profilePollQueueModel = $profilePollQueueModel;
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
public function execute(Request $request, Response $response): Response
|
||||
{
|
||||
try {
|
||||
$hexUrl = filter_input(INPUT_GET, 'url');
|
||||
if (!$hexUrl) {
|
||||
throw new \Exception('Missing url GET parameter', 400);
|
||||
}
|
||||
|
||||
$url = strtolower(hex2bin($hexUrl));
|
||||
|
||||
$this->logger->info('Received profile URL: ' . $url);
|
||||
|
||||
$host = parse_url($url, PHP_URL_HOST);
|
||||
if (!$host) {
|
||||
$this->logger->warning('Missing hostname in received profile URL: ' . $url);
|
||||
throw new \Exception('Missing hostname', 400);
|
||||
}
|
||||
|
||||
if (!\Friendica\Directory\Utils\Network::isPublicHost($host)) {
|
||||
$this->logger->warning('Private/reserved IP in received profile URL: ' . $url);
|
||||
throw new \Exception('Private/reserved hostname', 400);
|
||||
}
|
||||
|
||||
$profileUriInfo = \Friendica\Directory\Models\Profile::extractInfoFromProfileUrl($url);
|
||||
if (!$profileUriInfo) {
|
||||
$this->logger->warning('Invalid received profile URL: ' . $url);
|
||||
throw new \Exception('Invalid Profile URL', 400);
|
||||
}
|
||||
|
||||
$this->atlas->perform(
|
||||
'INSERT INTO `server_poll_queue` SET `base_url` = :base_url ON DUPLICATE KEY UPDATE `request_count` = `request_count` + 1',
|
||||
['base_url' => $profileUriInfo['server_uri']]
|
||||
);
|
||||
|
||||
$this->profilePollQueueModel->add($url);
|
||||
|
||||
$this->logger->info('Successfully received profile URL');
|
||||
} catch (\Exception $ex) {
|
||||
$response = $response->withStatus($ex->getCode(), $ex->getMessage());
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
60
src/classes/Controllers/Api/SyncPull.php
Normal file
60
src/classes/Controllers/Api/SyncPull.php
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Api;
|
||||
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class SyncPull
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Psr\Log\LoggerInterface $logger
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
public function execute(Request $request, Response $response, array $args): Response
|
||||
{
|
||||
$since = $args['since'] ?? null;
|
||||
|
||||
$stmt = 'SELECT `profile_url`
|
||||
FROM `profile` p
|
||||
JOIN `server` s ON s.`id` = p.`server_id`
|
||||
WHERE p.`available`
|
||||
AND NOT p.`hidden`
|
||||
AND s.`available`
|
||||
AND NOT s.`hidden`';
|
||||
$values = [];
|
||||
|
||||
if ($since) {
|
||||
$stmt .= '
|
||||
AND p.`updated` >= FROM_UNIXTIME(:since)';
|
||||
$values['since'] = [$since, \PDO::PARAM_INT];
|
||||
}
|
||||
|
||||
$profiles = $this->atlas->fetchColumn($stmt, $values);
|
||||
|
||||
$response = $response->withJson([
|
||||
'now' => time(),
|
||||
'count' => count($profiles),
|
||||
'results' => $profiles
|
||||
]);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
136
src/classes/Controllers/Console.php
Normal file
136
src/classes/Controllers/Console.php
Normal file
|
@ -0,0 +1,136 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers;
|
||||
|
||||
use Monolog\Logger;
|
||||
|
||||
/**
|
||||
* Description of Console
|
||||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Console extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Slim\Container
|
||||
*/
|
||||
protected $container;
|
||||
|
||||
// Disables the default help handling
|
||||
protected $helpOptions = [];
|
||||
protected $customHelpOptions = ['h', 'help', '?'];
|
||||
|
||||
protected $routes = [
|
||||
'directory-add' => \Friendica\Directory\Routes\Console\DirectoryAdd::class,
|
||||
'directory-poll' => \Friendica\Directory\Routes\Console\DirectoryPoll::class,
|
||||
'profile-hide' => \Friendica\Directory\Routes\Console\ProfileHide::class,
|
||||
'profile-poll' => \Friendica\Directory\Routes\Console\ProfilePoll::class,
|
||||
'server-hide' => \Friendica\Directory\Routes\Console\ServerHide::class,
|
||||
'server-poll' => \Friendica\Directory\Routes\Console\ServerPoll::class,
|
||||
'install' => \Friendica\Directory\Routes\Console\Install::class,
|
||||
'updatedb' => \Friendica\Directory\Routes\Console\UpdateDb::class,
|
||||
'dbupdate' => \Friendica\Directory\Routes\Console\UpdateDb::class,
|
||||
];
|
||||
|
||||
public function __construct(\Slim\Container $container, ?array $argv = null)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->container = $container;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$commandList = '';
|
||||
foreach ($this->routes as $command => $class) {
|
||||
$this->out($class);
|
||||
|
||||
$commandList .= ' ' . $command . ' ' . $class::description . "\n";
|
||||
}
|
||||
|
||||
$help = <<<HELP
|
||||
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]
|
||||
|
||||
Commands:
|
||||
$commandList
|
||||
|
||||
Options:
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
$showHelp = false;
|
||||
$subHelp = false;
|
||||
$command = null;
|
||||
|
||||
if ($this->getOption('version')) {
|
||||
//$this->out('Friendica Console version ' . FRIENDICA_VERSION);
|
||||
|
||||
return 0;
|
||||
} elseif ((count($this->options) === 0 || $this->getOption($this->customHelpOptions) === true || $this->getOption($this->customHelpOptions) === 1) && count($this->args) === 0
|
||||
) {
|
||||
$showHelp = true;
|
||||
} elseif (count($this->args) >= 2 && $this->getArgument(0) == 'help') {
|
||||
$command = $this->getArgument(1);
|
||||
$subHelp = true;
|
||||
array_shift($this->args);
|
||||
array_shift($this->args);
|
||||
} elseif (count($this->args) >= 1) {
|
||||
$command = $this->getArgument(0);
|
||||
array_shift($this->args);
|
||||
}
|
||||
|
||||
if (is_null($command)) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Increasing the logger level if -v is provided
|
||||
if ($this->getOption('v')) {
|
||||
/** @var \Monolog\Logger $logger */
|
||||
$handler = $this->container->get('logger')->popHandler();
|
||||
|
||||
$handler->setLevel(\Monolog\Logger::DEBUG);
|
||||
|
||||
$this->container->get('logger')->pushHandler($handler);
|
||||
}
|
||||
|
||||
$console = $this->getSubConsole($command);
|
||||
|
||||
if ($subHelp) {
|
||||
$console->setOption($this->customHelpOptions, true);
|
||||
}
|
||||
|
||||
return $console->execute();
|
||||
}
|
||||
|
||||
private function getSubConsole($command): \Asika\SimpleConsole\Console
|
||||
{
|
||||
$this->container->get('logger')->debug('Command: ' . $command);
|
||||
|
||||
if (!isset($this->routes[$command])) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Command ' . $command . ' doesn\'t exist');
|
||||
}
|
||||
|
||||
$subargs = $this->args;
|
||||
array_unshift($subargs, $this->executable);
|
||||
|
||||
$routeClassName = $this->routes[$command];
|
||||
|
||||
$consoleRoute = new $routeClassName($this->container);
|
||||
|
||||
/** @var \Asika\SimpleConsole\Console $subconsole */
|
||||
$subconsole = $consoleRoute($subargs);
|
||||
|
||||
foreach ($this->options as $name => $value) {
|
||||
$subconsole->setOption($name, $value);
|
||||
}
|
||||
|
||||
return $subconsole;
|
||||
}
|
||||
|
||||
}
|
71
src/classes/Controllers/Console/DirectoryAdd.php
Normal file
71
src/classes/Controllers/Console/DirectoryAdd.php
Normal file
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class DirectoryAdd extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->atlas = $atlas;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console directory-add - Adds provided directory to queue
|
||||
Usage
|
||||
bin/console directory-add <directory_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Adds provided directory to queue
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$directory_url = $this->getArgument(0);
|
||||
|
||||
$result = $this->atlas->perform('INSERT IGNORE INTO `directory_poll_queue` SET
|
||||
`directory_url` = :directory_url',
|
||||
['directory_url' => $directory_url]
|
||||
);
|
||||
|
||||
if (!$result) {
|
||||
throw new \RuntimeException('Unable to add repository with URL: ' . $directory_url);
|
||||
}
|
||||
|
||||
$this->out('Successfully added the repository to the queue.');
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
66
src/classes/Controllers/Console/DirectoryPoll.php
Normal file
66
src/classes/Controllers/Console/DirectoryPoll.php
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class DirectoryPoll extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Directory
|
||||
*/
|
||||
protected $pollDirectory;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Pollers\Directory $pollDirectory,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->atlas = $atlas;
|
||||
$this->pollDirectory = $pollDirectory;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console directory-poll - Polls provided directory
|
||||
Usage
|
||||
bin/console directory-poll <directory_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Polls provided directory
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$this->pollDirectory->__invoke($this->getArgument(0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
158
src/classes/Controllers/Console/Install.php
Normal file
158
src/classes/Controllers/Console/Install.php
Normal file
|
@ -0,0 +1,158 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
use Atlas\Pdo\Connection;
|
||||
use Monolog\Logger;
|
||||
use Seld\CliPrompt\CliPrompt;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Install extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
Logger $logger,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console install - Install directory
|
||||
Usage
|
||||
bin/console install <server_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Install directory
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$this->out('Friendica Directory Install Wizard');
|
||||
$this->out('==================================');
|
||||
|
||||
$config_file_path = __DIR__ . '/../../../../config/local.json';
|
||||
|
||||
if (is_file($config_file_path)) {
|
||||
throw new \RuntimeException('Local config file already exists, did you want to run "bin/console dbupdate" ?');
|
||||
}
|
||||
|
||||
if (!is_writable(dirname($config_file_path))) {
|
||||
throw new \RuntimeException('The config/ directory isn\'t writable, please check file permissions.');
|
||||
}
|
||||
|
||||
$this->out('Warning: This will override any existing database!');
|
||||
|
||||
|
||||
do {
|
||||
$this->out('Please enter your database hostname [localhost] ', false);
|
||||
|
||||
$host = CliPrompt::prompt();
|
||||
|
||||
if (!$host) {
|
||||
$host = 'localhost';
|
||||
}
|
||||
|
||||
do {
|
||||
$this->out('Please enter your database username: ', false);
|
||||
|
||||
$user = CliPrompt::prompt();
|
||||
} while (!$user);
|
||||
|
||||
$this->out('Please enter your database password: ', false);
|
||||
|
||||
$pass = CliPrompt::hiddenPrompt();
|
||||
|
||||
do {
|
||||
$this->out('Please enter your database name: ', false);
|
||||
|
||||
$base = CliPrompt::prompt();
|
||||
} while (!$base);
|
||||
|
||||
$localSettings = [
|
||||
'database' => [
|
||||
'driver' => 'mysql',
|
||||
'hostname' => $host,
|
||||
'database' => $base,
|
||||
'username' => $user,
|
||||
'password' => $pass,
|
||||
]
|
||||
];
|
||||
|
||||
try {
|
||||
$dsn = "{$localSettings['database']['driver']}:dbname={$localSettings['database']['database']};host={$localSettings['database']['hostname']}";
|
||||
|
||||
Connection::new($dsn, $localSettings['database']['username'], $localSettings['database']['password']);
|
||||
|
||||
break;
|
||||
} catch (\Exception $ex) {
|
||||
$this->logger->error($ex->getMessage());
|
||||
} catch (\Throwable $e) {
|
||||
$this->logger->error($e->getMessage());
|
||||
}
|
||||
} while (true);
|
||||
|
||||
$result = file_put_contents($config_file_path, json_encode($localSettings, JSON_PRETTY_PRINT));
|
||||
|
||||
if (!$result) {
|
||||
throw new \RuntimeException('Unable to write to config/local.json, please check writing permissions.');
|
||||
}
|
||||
|
||||
$this->out('Local config file successfully created.');
|
||||
|
||||
$this->out('Initializing database schema...');
|
||||
|
||||
$connectionUri = new \ByJG\Util\Uri("mysql://$user:$pass@$host/$base");
|
||||
|
||||
$migration = new \ByJG\DbMigration\Migration($connectionUri, __DIR__ . '/../../../sql/');
|
||||
|
||||
$migration->registerDatabase('mysql', \ByJG\DbMigration\Database\MySqlDatabase::class);
|
||||
|
||||
$migration->reset();
|
||||
|
||||
$this->out('Done.');
|
||||
|
||||
$this->out(<<<'STDOUT'
|
||||
|
||||
Note: You still need to manually set up a cronjob like the following on *nix:
|
||||
* * * * * cd /path/to/friendica-directory && bin/cron
|
||||
|
||||
======
|
||||
To populate your directory, you can either:
|
||||
- Add a new remote directory to pull from with "bin/console directory-add <directory URL>".
|
||||
- Add it as the main directory in your Friendica admin settings.
|
||||
STDOUT
|
||||
);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
79
src/classes/Controllers/Console/ProfileHide.php
Normal file
79
src/classes/Controllers/Console/ProfileHide.php
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
use Friendica\Directory\Models\Profile;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ProfileHide extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->atlas = $atlas;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console profile-hide - Toggle profile hidden status
|
||||
Usage
|
||||
bin/console profile-hide <profile_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Toggle profile hidden status
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$profile_url = trim($this->getArgument(0), '/');
|
||||
|
||||
$profileInfo = Profile::extractInfoFromProfileUrl($profile_url);
|
||||
if (!$profileInfo) {
|
||||
throw new \RuntimeException('Invalid profile with URL: ' . $profile_url);
|
||||
}
|
||||
|
||||
$profile = $this->atlas->fetchOne('SELECT * FROM `profile` WHERE `addr` = :addr', ['addr' => $profileInfo['addr']]);
|
||||
if (!$profile) {
|
||||
throw new \RuntimeException('Unknown profile with URL: ' . $profile_url);
|
||||
}
|
||||
|
||||
$result = $this->atlas->fetchAffected('UPDATE `profile` SET `hidden` = 1 - `hidden` WHERE `id` = :id', ['id' => [$profile['id'], \PDO::PARAM_INT]]);
|
||||
if (!$result) {
|
||||
throw new \RuntimeException('Unable to update profile with ID: ' . $profile['id']);
|
||||
}
|
||||
|
||||
$this->out('Profile successfully ' . ($profile['hidden'] ? 'visible' : 'hidden'));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
57
src/classes/Controllers/Console/ProfilePoll.php
Normal file
57
src/classes/Controllers/Console/ProfilePoll.php
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ProfilePoll extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Profile
|
||||
*/
|
||||
protected $pollProfile;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(\Friendica\Directory\Pollers\Profile $pollProfile, ?array $argv = null)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->pollProfile = $pollProfile;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console profile-poll - Polls provided profile
|
||||
Usage
|
||||
bin/console profile-poll <profile_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Polls provided profile
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$this->pollProfile->__invoke($this->getArgument(0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
81
src/classes/Controllers/Console/ServerHide.php
Normal file
81
src/classes/Controllers/Console/ServerHide.php
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ServerHide extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Server
|
||||
*/
|
||||
protected $serverModel;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\Server $serverModel,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->atlas = $atlas;
|
||||
$this->serverModel = $serverModel;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console server-hide - Toggle server hidden status
|
||||
Usage
|
||||
bin/console server-hide <server_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Toggle server hidden status
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$server_url = trim($this->getArgument(0), '/');
|
||||
|
||||
$server = $this->serverModel->getByUrlAlias($server_url);
|
||||
|
||||
if (!$server) {
|
||||
throw new \RuntimeException('Unknown server with URL: ' . $server_url);
|
||||
}
|
||||
|
||||
$result = $this->atlas->perform('UPDATE `server` SET `hidden` = 1 - `hidden` WHERE `id` = :id', ['id' => [$server['id'], \PDO::PARAM_INT]]);
|
||||
|
||||
if (!$result) {
|
||||
throw new \RuntimeException('Unable to update server with ID: ' . $server['id']);
|
||||
}
|
||||
|
||||
$this->out('Server successfully ' . ($server['hidden'] ? 'visible' : 'hidden'));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
66
src/classes/Controllers/Console/ServerPoll.php
Normal file
66
src/classes/Controllers/Console/ServerPoll.php
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ServerPoll extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Server
|
||||
*/
|
||||
protected $pollServer;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Pollers\Server $pollServer,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->atlas = $atlas;
|
||||
$this->pollServer = $pollServer;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console server-poll - Polls provided server
|
||||
Usage
|
||||
bin/console server-poll <server_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Polls provided server
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$this->pollServer->__invoke($this->getArgument(0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
72
src/classes/Controllers/Console/UpdateDb.php
Normal file
72
src/classes/Controllers/Console/UpdateDb.php
Normal file
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Console;
|
||||
|
||||
use Monolog\Logger;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class UpdateDb extends \Asika\SimpleConsole\Console
|
||||
{
|
||||
/**
|
||||
* @var Logger
|
||||
*/
|
||||
protected $logger;
|
||||
/**
|
||||
* @var \ByJG\DbMigration\Migration
|
||||
*/
|
||||
protected $migration;
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
public function __construct(
|
||||
Logger $logger,
|
||||
\ByJG\DbMigration\Migration $migration,
|
||||
?array $argv = null
|
||||
)
|
||||
{
|
||||
parent::__construct($argv);
|
||||
|
||||
$this->logger = $logger;
|
||||
$this->migration = $migration;
|
||||
}
|
||||
|
||||
protected function getHelp()
|
||||
{
|
||||
$help = <<<HELP
|
||||
console updatedb - Update database schema
|
||||
Usage
|
||||
bin/console updatedb <server_url> [-h|--help|-?] [-v]
|
||||
|
||||
Description
|
||||
Update database schema
|
||||
|
||||
Options
|
||||
-h|--help|-? Show help information
|
||||
-v Show more debug information.
|
||||
HELP;
|
||||
return $help;
|
||||
}
|
||||
|
||||
protected function doExecute()
|
||||
{
|
||||
if (count($this->args) == 0) {
|
||||
$this->out($this->getHelp());
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (count($this->args) > 1) {
|
||||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$this->out('Updating database schema to latest version...');
|
||||
|
||||
$this->migration->up();
|
||||
|
||||
$this->out('Database schema migrated to version ' . $this->migration->getCurrentVersion()['version']);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
224
src/classes/Controllers/Cron.php
Normal file
224
src/classes/Controllers/Cron.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Cron
|
||||
{
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Profile
|
||||
*/
|
||||
protected $profilePoller;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Server
|
||||
*/
|
||||
protected $serverPoller;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Pollers\Directory
|
||||
*/
|
||||
protected $directoryPoller;
|
||||
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $settings = [
|
||||
'directory_poll_delay' => 3600, // 1 hour
|
||||
'server_poll_delay' => 24 * 3600, // 1 day
|
||||
'profile_poll_delay' => 24 * 3600, // 1 day
|
||||
|
||||
'directory_poll_retry_base_delay' => 600, // 10 minutes
|
||||
'server_poll_retry_base_delay' => 1800, // 30 minutes
|
||||
'profile_poll_retry_base_delay' => 1800, // 30 minutes
|
||||
];
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $startTime;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Pollers\Profile $profilePoller,
|
||||
\Friendica\Directory\Pollers\Server $serverPoller,
|
||||
\Friendica\Directory\Pollers\Directory $directoryPoller,
|
||||
\Psr\Log\LoggerInterface $logger,
|
||||
array $settings = []
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profilePoller = $profilePoller;
|
||||
$this->serverPoller = $serverPoller;
|
||||
$this->directoryPoller = $directoryPoller;
|
||||
$this->logger = $logger;
|
||||
$this->settings = array_merge($this->settings, $settings);
|
||||
$this->startTime = microtime(true);
|
||||
}
|
||||
|
||||
public function execute()
|
||||
{
|
||||
$this->logger->info('Start Cron job');
|
||||
|
||||
$this->pollDirectories(9);
|
||||
|
||||
$this->pollServers(24);
|
||||
|
||||
$this->pollProfiles(58);
|
||||
|
||||
$this->logger->info('Stop Cron job');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|null $time_limit
|
||||
*/
|
||||
private function pollDirectories(int $time_limit = null): void
|
||||
{
|
||||
$directories = $this->atlas->fetchAll(
|
||||
'SELECT `directory_url`, `retries_count`
|
||||
FROM `directory_poll_queue`
|
||||
WHERE `next_poll` <= NOW()
|
||||
ORDER BY ISNULL(`last_polled`) DESC'
|
||||
);
|
||||
|
||||
foreach ($directories as $directory) {
|
||||
if ($time_limit && microtime(true) - $this->startTime > $time_limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
$directory_poll_result = $this->directoryPoller->__invoke($directory['directory_url']);
|
||||
|
||||
if ($directory_poll_result) {
|
||||
$new_retries_count = 0;
|
||||
$poll_delay = $this->settings['directory_poll_delay'];
|
||||
} else {
|
||||
$new_retries_count = $directory['retries_count'] + 1;
|
||||
$poll_delay = $this->settings['directory_poll_retry_base_delay'] * pow($new_retries_count, 3);
|
||||
}
|
||||
|
||||
$this->atlas->perform(
|
||||
'UPDATE `directory_poll_queue` SET
|
||||
`last_polled` = NOW(),
|
||||
`next_poll` = DATE_ADD(NOW(), INTERVAL :seconds SECOND),
|
||||
`retries_count` = :retries_count
|
||||
WHERE `directory_url` = :directory_url',
|
||||
[
|
||||
'seconds' => [$poll_delay, \PDO::PARAM_INT],
|
||||
'directory_url' => $directory['directory_url'],
|
||||
'retries_count' => [$new_retries_count, \PDO::PARAM_INT]
|
||||
]
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private function pollServers(int $time_limit = null): void
|
||||
{
|
||||
$servers = $this->atlas->fetchAll(
|
||||
'SELECT `base_url`, `retries_count`
|
||||
FROM `server_poll_queue`
|
||||
WHERE `next_poll` <= NOW()
|
||||
ORDER BY ISNULL(`last_polled`) DESC, `request_count` DESC'
|
||||
);
|
||||
|
||||
foreach ($servers as $server_queue_item) {
|
||||
if ($time_limit && microtime(true) - $this->startTime > $time_limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
try {
|
||||
$new_base_url = null;
|
||||
|
||||
$server_id = $this->serverPoller->__invoke($server_queue_item['base_url']);
|
||||
|
||||
if ($server_id) {
|
||||
$new_base_url = $this->atlas->fetchValue('SELECT `base_url` FROM `server` WHERE `id` = :id', ['id' => [$server_id, \PDO::PARAM_INT]]);
|
||||
}
|
||||
|
||||
if ($new_base_url && $new_base_url != $server_queue_item['base_url']) {
|
||||
$this->atlas->perform('INSERT IGNORE INTO `server_poll_queue` SET `base_url` = :base_url', ['base_url' => $new_base_url]);
|
||||
$this->logger->info('New base URL: ' . $server_queue_item['base_url'] . ' => ' . $new_base_url);
|
||||
}
|
||||
|
||||
if ($new_base_url == $server_queue_item['base_url']) {
|
||||
$new_retries_count = 0;
|
||||
$poll_delay = $this->settings['server_poll_delay'];
|
||||
} else {
|
||||
$new_retries_count = $server_queue_item['retries_count'] + 1;
|
||||
$poll_delay = $this->settings['server_poll_retry_base_delay'] * pow($new_retries_count, 3);
|
||||
}
|
||||
|
||||
$this->atlas->perform(
|
||||
'UPDATE `server_poll_queue` SET
|
||||
`last_polled` = NOW(),
|
||||
`next_poll` = DATE_ADD(NOW(), INTERVAL :seconds SECOND),
|
||||
`retries_count` = :retries_count,
|
||||
`request_count` = 0
|
||||
WHERE `base_url` = :base_url',
|
||||
[
|
||||
'seconds' => [$poll_delay, \PDO::PARAM_INT],
|
||||
'base_url' => $server_queue_item['base_url'],
|
||||
'retries_count' => [$new_retries_count, \PDO::PARAM_INT]
|
||||
]
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->error($e->getMessage() . ': ' . $e->getTraceAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function pollProfiles(int $time_limit = null): void
|
||||
{
|
||||
$profiles = $this->atlas->fetchAll(
|
||||
'SELECT `profile_url`, `retries_count`
|
||||
FROM `profile_poll_queue`
|
||||
WHERE `next_poll` <= NOW()
|
||||
ORDER BY RAND() ASC'
|
||||
);
|
||||
|
||||
foreach ($profiles as $profile) {
|
||||
if ($time_limit && microtime(true) - $this->startTime > $time_limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
try {
|
||||
$profile_poll_result = $this->profilePoller->__invoke($profile['profile_url']);
|
||||
|
||||
if ($profile_poll_result) {
|
||||
$new_retries_count = 0;
|
||||
$poll_delay = $this->settings['profile_poll_delay'];
|
||||
} else {
|
||||
$new_retries_count = $profile['retries_count'] + 1;
|
||||
$poll_delay = $this->settings['profile_poll_retry_base_delay'] * pow($new_retries_count, 3);
|
||||
}
|
||||
|
||||
|
||||
$this->atlas->perform('UPDATE `profile_poll_queue` SET
|
||||
`last_polled` = NOW(),
|
||||
`next_poll` = DATE_ADD(NOW(), INTERVAL :seconds SECOND),
|
||||
`retries_count` = :retries_count
|
||||
WHERE `profile_url` = :profile_url',
|
||||
[
|
||||
'seconds' => [$poll_delay, \PDO::PARAM_INT],
|
||||
'profile_url' => $profile['profile_url'],
|
||||
'retries_count' => [$new_retries_count, \PDO::PARAM_INT]
|
||||
]
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->error($e->getMessage() . ': ' . $e->getTraceAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
86
src/classes/Controllers/Web/Directory.php
Normal file
86
src/classes/Controllers/Web/Directory.php
Normal file
|
@ -0,0 +1,86 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Web;
|
||||
|
||||
use \Friendica\Directory\Content\Pager;
|
||||
use \Friendica\Directory\Views\Widget\PopularCountries;
|
||||
use \Friendica\Directory\Views\Widget\PopularTags;
|
||||
use PDO;
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Directory
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Profile
|
||||
*/
|
||||
private $profileModel;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\Widget\AccountTypeTabs
|
||||
*/
|
||||
private $accountTypeTabs;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\Profile $profileModel,
|
||||
\Friendica\Directory\Views\Widget\AccountTypeTabs $accountTypeTabs,
|
||||
\Friendica\Directory\Views\PhpRenderer $renderer,
|
||||
\Friendica\Directory\Content\L10n $l10n
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profileModel = $profileModel;
|
||||
$this->accountTypeTabs = $accountTypeTabs;
|
||||
$this->renderer = $renderer;
|
||||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
public function render(Request $request, Response $response, array $args): Response
|
||||
{
|
||||
$popularTags = new PopularTags($this->atlas, $this->renderer);
|
||||
$popularCountries = new PopularCountries($this->atlas, $this->renderer);
|
||||
|
||||
$pager = new Pager($this->l10n, $request, 20);
|
||||
|
||||
$condition = '';
|
||||
$values = [];
|
||||
if (!empty($args['account_type'])) {
|
||||
$condition = '`account_type` = :account_type';
|
||||
$values = ['account_type' => $args['account_type']];
|
||||
}
|
||||
|
||||
$profiles = $this->profileModel->getListForDisplay($pager->getItemsPerPage(), $pager->getStart(), $condition, $values);
|
||||
|
||||
$count = $this->profileModel->getCountForDisplay($condition, $values);
|
||||
|
||||
$vars = [
|
||||
'title' => $this->l10n->t('People'),
|
||||
'profiles' => $profiles,
|
||||
'pager_full' => $pager->renderFull($count),
|
||||
'pager_minimal' => $pager->renderMinimal($count),
|
||||
'accountTypeTabs' => $this->accountTypeTabs->render('directory', $args['account_type'] ?? ''),
|
||||
'popularTags' => $popularTags->render(),
|
||||
'popularCountries' => $popularCountries->render(),
|
||||
];
|
||||
|
||||
$content = $this->renderer->fetch('directory.phtml', $vars);
|
||||
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'layout.phtml', ['baseUrl' => $request->getUri()->getBaseUrl(), 'content' => $content]);
|
||||
}
|
||||
}
|
54
src/classes/Controllers/Web/Photo.php
Normal file
54
src/classes/Controllers/Web/Photo.php
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Web;
|
||||
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Photo
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
}
|
||||
|
||||
public function render(Request $request, Response $response, array $args): Response
|
||||
{
|
||||
$data = $this->atlas->fetchValue(
|
||||
'SELECT `data` FROM `photo` WHERE `profile_id` = :profile_id',
|
||||
['profile_id' => $args['profile_id']]
|
||||
);
|
||||
|
||||
if (!$data) {
|
||||
$data = file_get_contents('public/images/default-profile-sm.jpg');
|
||||
}
|
||||
|
||||
//Try and cache our result.
|
||||
$etag = md5($data);
|
||||
|
||||
$response = $response
|
||||
->withHeader('Etag', $etag)
|
||||
->withHeader('Expires', date('D, d M Y H:i:s' . ' GMT', strtotime('now + 1 week')))
|
||||
->withHeader('Cache-Control', 'max-age=' . intval(7 * 24 * 3600))
|
||||
->withoutHeader('Pragma');
|
||||
|
||||
if ($request->getServerParam('HTTP_IF_NONE_MATCH') == $etag) {
|
||||
$response = $response->withStatus(304, 'Not Modified');
|
||||
} else {
|
||||
$response = $response->withHeader('Content-type', 'image/jpeg');
|
||||
$response->getBody()->write($data);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
94
src/classes/Controllers/Web/Search.php
Normal file
94
src/classes/Controllers/Web/Search.php
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Web;
|
||||
|
||||
use \Friendica\Directory\Content\Pager;
|
||||
use PDO;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Search
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Profile
|
||||
*/
|
||||
private $profileModel;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\Widget\AccountTypeTabs
|
||||
*/
|
||||
private $accountTypeTabs;
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\Profile $profileModel,
|
||||
\Friendica\Directory\Views\Widget\AccountTypeTabs $accountTypeTabs,
|
||||
\Friendica\Directory\Views\PhpRenderer $renderer,
|
||||
\Friendica\Directory\Content\L10n $l10n
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profileModel = $profileModel;
|
||||
$this->accountTypeTabs = $accountTypeTabs;
|
||||
$this->renderer = $renderer;
|
||||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
public function render(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
$pager = new Pager($this->l10n, $request, 20);
|
||||
|
||||
$originalQuery = $query = filter_input(INPUT_GET, 'q');
|
||||
|
||||
$field = filter_input(INPUT_GET, 'field', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW & FILTER_FLAG_STRIP_HIGH);
|
||||
|
||||
if ($field) {
|
||||
$query .= '%';
|
||||
$sql_where = '`' . $field . '` LIKE :query';
|
||||
} else {
|
||||
$sql_where = "MATCH (p.`name`, p.`pdesc`, p.`profile_url`, p.`locality`, p.`region`, p.`country`, p.`tags` )
|
||||
AGAINST (:query IN BOOLEAN MODE)";
|
||||
}
|
||||
|
||||
$values = ['query' => $query];
|
||||
|
||||
$account_type = $args['account_type'] ?? '';
|
||||
if ($account_type) {
|
||||
$sql_where .= '
|
||||
AND `account_type` = :account_type';
|
||||
$values['account_type'] = $account_type;
|
||||
}
|
||||
|
||||
$profiles = $this->profileModel->getListForDisplay($pager->getItemsPerPage(), $pager->getStart(), $sql_where, $values);
|
||||
|
||||
$count = $this->profileModel->getCountForDisplay($sql_where, $values);
|
||||
|
||||
$vars = [
|
||||
'query' => $originalQuery,
|
||||
'count' => $count,
|
||||
'accountTypeTabs' => $this->accountTypeTabs->render('search', $account_type, ['q' => $originalQuery]),
|
||||
'profiles' => $profiles,
|
||||
'pager_full' => $pager->renderFull($count),
|
||||
'pager_minimal' => $pager->renderMinimal($count),
|
||||
];
|
||||
|
||||
$content = $this->renderer->fetch('search.phtml', $vars);
|
||||
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'layout.phtml', ['baseUrl' => $request->getUri()->getBaseUrl(), 'content' => $content, 'noNavSearch' => true]);
|
||||
}
|
||||
}
|
100
src/classes/Controllers/Web/Servers.php
Normal file
100
src/classes/Controllers/Web/Servers.php
Normal file
|
@ -0,0 +1,100 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Controllers\Web;
|
||||
|
||||
use \Friendica\Directory\Content\Pager;
|
||||
use PDO;
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Servers
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
/**
|
||||
* @var \Psr\SimpleCache\CacheInterface
|
||||
*/
|
||||
private $simplecache;
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Views\PhpRenderer $renderer,
|
||||
\Friendica\Directory\Content\L10n $l10n,
|
||||
\Psr\SimpleCache\CacheInterface $simplecache
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->renderer = $renderer;
|
||||
$this->l10n = $l10n;
|
||||
$this->simplecache = $simplecache;
|
||||
}
|
||||
|
||||
public function render(Request $request, Response $response): Response
|
||||
{
|
||||
$stable_version = $this->simplecache->get('stable_version');
|
||||
if (!$stable_version) {
|
||||
$stable_version = trim(file_get_contents('https://git.friendi.ca/friendica/friendica/raw/branch/master/VERSION'));
|
||||
$this->simplecache->set('stable_version', $stable_version);
|
||||
}
|
||||
|
||||
$dev_version = $this->simplecache->get('dev_version');
|
||||
if (!$dev_version) {
|
||||
$dev_version = trim(file_get_contents('https://git.friendi.ca/friendica/friendica/raw/branch/develop/VERSION'));
|
||||
$this->simplecache->set('dev_version', $dev_version);
|
||||
}
|
||||
|
||||
$pager = new Pager($this->l10n, $request, 20);
|
||||
|
||||
$stmt = 'SELECT *
|
||||
FROM `server` s
|
||||
WHERE `reg_policy` = "REGISTER_OPEN"
|
||||
AND `available`
|
||||
AND NOT `hidden`
|
||||
ORDER BY `health_score` DESC, `ssl_state` DESC, `info` != "" DESC, `dt_last_probed` DESC
|
||||
LIMIT :start, :limit';
|
||||
$servers = $this->atlas->fetchAll($stmt, [
|
||||
'start' => [$pager->getStart(), PDO::PARAM_INT],
|
||||
'limit' => [$pager->getItemsPerPage(), PDO::PARAM_INT]
|
||||
]);
|
||||
|
||||
foreach ($servers as $key => $server) {
|
||||
$servers[$key]['user_count'] = $this->atlas->fetchValue(
|
||||
'SELECT COUNT(*) FROM `profile` WHERE `available` AND `server_id` = :server_id',
|
||||
['server_id' => [$server['id'], PDO::PARAM_INT]]
|
||||
);
|
||||
}
|
||||
|
||||
$stmt = 'SELECT COUNT(*)
|
||||
FROM `server` s
|
||||
WHERE `reg_policy` = "REGISTER_OPEN"
|
||||
AND `available`
|
||||
AND NOT `hidden`';
|
||||
$count = $this->atlas->fetchValue($stmt);
|
||||
|
||||
$vars = [
|
||||
'title' => $this->l10n->t('Public Servers'),
|
||||
'servers' => $servers,
|
||||
'pager' => $pager->renderFull($count),
|
||||
'stable_version' => $stable_version,
|
||||
'dev_version' => $dev_version,
|
||||
];
|
||||
|
||||
$content = $this->renderer->fetch('servers.phtml', $vars);
|
||||
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'layout.phtml', ['baseUrl' => $request->getUri()->getBaseUrl(), 'content' => $content]);
|
||||
}
|
||||
}
|
20
src/classes/Model.php
Normal file
20
src/classes/Model.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Model
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
protected $atlas;
|
||||
|
||||
public function __construct(\Atlas\Pdo\Connection $atlas)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
}
|
||||
}
|
121
src/classes/Models/Profile.php
Normal file
121
src/classes/Models/Profile.php
Normal file
|
@ -0,0 +1,121 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Models;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Profile extends \Friendica\Directory\Model
|
||||
{
|
||||
public function deleteById(int $profile_id): bool
|
||||
{
|
||||
$this->atlas->perform('DELETE FROM `photo` WHERE `profile_id` = :profile_id',
|
||||
['profile_id' => [$profile_id, \PDO::PARAM_INT]]
|
||||
);
|
||||
$this->atlas->perform('DELETE FROM `tag` WHERE `profile_id` = :profile_id',
|
||||
['profile_id' => [$profile_id, \PDO::PARAM_INT]]
|
||||
);
|
||||
$this->atlas->perform('DELETE FROM `profile` WHERE `id` = :profile_id',
|
||||
['profile_id' => [$profile_id, \PDO::PARAM_INT]]
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $profile_uri
|
||||
* @return array|boolean
|
||||
*/
|
||||
public static function extractInfoFromProfileUrl(string $profile_uri)
|
||||
{
|
||||
if (substr($profile_uri, 0, 4) === 'http') {
|
||||
// http://friendica.mrpetovan.com/profile/hypolite
|
||||
// https://friendica.mrpetovan.com/profile/hypolite
|
||||
// http://friendica.mrpetovan.com/~hypolite
|
||||
// https://friendica.mrpetovan.com/~hypolite
|
||||
|
||||
$username = ltrim(basename($profile_uri), '~');
|
||||
|
||||
if (strpos($profile_uri, '~') !== false) {
|
||||
$server_uri = substr($profile_uri, 0, strpos($profile_uri, '/~'));
|
||||
} elseif (strpos($profile_uri, '/profile/') !== false) {
|
||||
$server_uri = substr($profile_uri, 0, strpos($profile_uri, '/profile/'));
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// hypolite@friendica.mrpetovan.com
|
||||
// acct:hypolite@friendica.mrpetovan.com
|
||||
// acct://hypolite@friendica.mrpetovan.com
|
||||
|
||||
$local = str_replace('acct:', '', $profile_uri);
|
||||
|
||||
if (substr($local, 0, 2) == '//') {
|
||||
$local = substr($local, 2);
|
||||
}
|
||||
|
||||
if (strpos($local, '@') !== false) {
|
||||
$username = substr($local, 0, strpos($local, '@'));
|
||||
$server_uri = 'http://' . substr($local, strpos($local, '@') + 1);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$hostname = str_replace(['https://', 'http://'], ['', ''], $server_uri);
|
||||
|
||||
$addr = $username . '@' . $hostname;
|
||||
|
||||
return [
|
||||
'username' => $username,
|
||||
'server_uri' => $server_uri,
|
||||
'hostname' => $hostname,
|
||||
'addr' => $addr
|
||||
];
|
||||
}
|
||||
|
||||
public function getListForDisplay(int $limit = 30, int $start = 0, string $condition = '', array $values = []): array
|
||||
{
|
||||
if ($condition) {
|
||||
$condition = 'AND ' . $condition;
|
||||
}
|
||||
|
||||
$values = array_merge($values, [
|
||||
'start' => [$start, \PDO::PARAM_INT],
|
||||
'limit' => [$limit, \PDO::PARAM_INT]
|
||||
]);
|
||||
|
||||
$stmt = 'SELECT p.`id`, p.`name`, p.`username`, p.`addr`, p.`account_type`, p.`pdesc`,
|
||||
p.`locality`, p.`region`, p.`country`, p.`profile_url`, p.`dfrn_request`, p.`photo`,
|
||||
p.`tags`, p.`last_activity`
|
||||
FROM `profile` p
|
||||
JOIN `server` s ON s.`id` = p.`server_id` AND s.`available` AND NOT s.`hidden`
|
||||
WHERE p.`available`
|
||||
AND NOT p.`hidden`
|
||||
' . $condition . '
|
||||
GROUP BY p.`id`
|
||||
ORDER BY `filled_fields` DESC, `last_activity` DESC, `updated` DESC
|
||||
LIMIT :start, :limit';
|
||||
$profiles = $this->atlas->fetchAll($stmt, $values);
|
||||
|
||||
return $profiles;
|
||||
}
|
||||
|
||||
|
||||
public function getCountForDisplay(string $condition = '', array $values = []): int
|
||||
{
|
||||
if ($condition) {
|
||||
$condition = 'AND ' . $condition;
|
||||
}
|
||||
|
||||
$stmt = 'SELECT COUNT(*)
|
||||
FROM `profile` p
|
||||
JOIN `server` s ON s.`id` = p.`server_id` AND s.`available` AND NOT s.`hidden`
|
||||
WHERE p.`available`
|
||||
AND NOT p.`hidden`
|
||||
' . $condition;
|
||||
$count = $this->atlas->fetchValue($stmt, $values);
|
||||
|
||||
return $count;
|
||||
}
|
||||
}
|
25
src/classes/Models/ProfilePollQueue.php
Normal file
25
src/classes/Models/ProfilePollQueue.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Models;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ProfilePollQueue extends \Friendica\Directory\Model
|
||||
{
|
||||
public function add(string $profile_url): bool
|
||||
{
|
||||
$url = trim($profile_url);
|
||||
|
||||
if (!$url) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->atlas->perform(
|
||||
'INSERT IGNORE INTO `profile_poll_queue` SET `profile_url` = :profile_url',
|
||||
['profile_url' => $url]
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
42
src/classes/Models/Server.php
Normal file
42
src/classes/Models/Server.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Models;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Server extends \Friendica\Directory\Model
|
||||
{
|
||||
/**
|
||||
* @param string $server_url
|
||||
* @return array|null
|
||||
*/
|
||||
public function getByUrlAlias(string $server_url): ?array
|
||||
{
|
||||
$server_alias = str_replace(['http://', 'https://'], ['', ''], $server_url);
|
||||
|
||||
$server = $this->atlas->fetchOne('SELECT s.* FROM `server` s JOIN `server_alias` sa ON sa.`server_id` = s.`id` WHERE sa.`alias` = :alias',
|
||||
['alias' => $server_alias]
|
||||
);
|
||||
|
||||
return $server;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $server_url
|
||||
*/
|
||||
public function addAliasToServer(int $server_id, string $server_url): void
|
||||
{
|
||||
$server_alias = str_replace(['http://', 'https://'], ['', ''], $server_url);
|
||||
|
||||
$this->atlas->perform('INSERT INTO `server_alias`
|
||||
SET `server_id` = :server_id,
|
||||
`alias` = :alias,
|
||||
`timestamp` = NOW()
|
||||
ON DUPLICATE KEY UPDATE `timestamp` = NOW()',
|
||||
[
|
||||
'server_id' => $server_id,
|
||||
'alias' => strtolower($server_alias)
|
||||
]);
|
||||
}
|
||||
}
|
120
src/classes/Pollers/Directory.php
Normal file
120
src/classes/Pollers/Directory.php
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Pollers;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Directory
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\ProfilePollQueue
|
||||
*/
|
||||
private $profilePollQueueModel;
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $settings = [
|
||||
'probe_timeout' => 5
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\ProfilePollQueue $profilePollQueueModel,
|
||||
\Psr\Log\LoggerInterface $logger,
|
||||
array $settings)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profilePollQueueModel = $profilePollQueueModel;
|
||||
$this->logger = $logger;
|
||||
$this->settings = array_merge($this->settings, $settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $directory_url
|
||||
* @param int|null $last_polled
|
||||
* @return bool
|
||||
*/
|
||||
public function __invoke(string $directory_url, int $last_polled = null): bool
|
||||
{
|
||||
$this->logger->info('Pull from directory with URL: ' . $directory_url);
|
||||
|
||||
try {
|
||||
$host = parse_url($directory_url, PHP_URL_HOST);
|
||||
if (!$host) {
|
||||
throw new \Exception('Missing hostname in polled directory URL: ' . $directory_url);
|
||||
}
|
||||
|
||||
if (!\Friendica\Directory\Utils\Network::isPublicHost($host)) {
|
||||
throw new \Exception('Private/reserved IP in polled directory URL: ' . $directory_url);
|
||||
}
|
||||
|
||||
$profiles = $this->getPullResult($directory_url, $last_polled);
|
||||
foreach ($profiles as $profile_url) {
|
||||
$this->profilePollQueueModel->add($profile_url);
|
||||
}
|
||||
|
||||
$this->logger->info('Successfully pulled ' . count($profiles) . ' profiles');
|
||||
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->warning($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function getPullResult(string $directory_url, ?int $last_polled = null): array
|
||||
{
|
||||
$path = '/sync/pull/all';
|
||||
if ($last_polled) {
|
||||
$path = '/sync/pull/since/' . $last_polled;
|
||||
}
|
||||
|
||||
//Prepare the CURL call.
|
||||
$handle = curl_init();
|
||||
$options = array(
|
||||
//Timeouts
|
||||
CURLOPT_TIMEOUT => max($this->settings['probe_timeout'], 1), //Minimum of 1 second timeout.
|
||||
CURLOPT_CONNECTTIMEOUT => 1,
|
||||
//Redirecting
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_MAXREDIRS => 8,
|
||||
//SSL
|
||||
CURLOPT_SSL_VERIFYPEER => true,
|
||||
// CURLOPT_VERBOSE => true,
|
||||
// CURLOPT_CERTINFO => true,
|
||||
CURLOPT_SSL_VERIFYHOST => 2,
|
||||
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
|
||||
//Basic request
|
||||
CURLOPT_USERAGENT => 'friendica-directory-probe-1.0',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_URL => $directory_url . $path
|
||||
);
|
||||
curl_setopt_array($handle, $options);
|
||||
|
||||
$this->logger->info('Pulling profiles from directory URL: ' . $directory_url . $path);
|
||||
|
||||
//Probe the site.
|
||||
$pull_data = curl_exec($handle);
|
||||
|
||||
//Done with CURL now.
|
||||
curl_close($handle);
|
||||
|
||||
$data = json_decode($pull_data, true);
|
||||
|
||||
if (!isset($data['results']) || !is_array($data['results'])) {
|
||||
throw new \Exception('Invalid directory pull data for directory with URL: ' . $directory_url . $path);
|
||||
}
|
||||
|
||||
return $data['results'];
|
||||
}
|
||||
}
|
337
src/classes/Pollers/Profile.php
Normal file
337
src/classes/Pollers/Profile.php
Normal file
|
@ -0,0 +1,337 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Pollers;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Profile
|
||||
{
|
||||
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Server
|
||||
*/
|
||||
private $serverModel;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Profile
|
||||
*/
|
||||
private $profileModel;
|
||||
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $settings = [
|
||||
'probe_timeout' => 5,
|
||||
'remove_profile_health_threshold' => -60
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\Server $serverModel,
|
||||
\Friendica\Directory\Models\Profile $profileModel,
|
||||
\Psr\Log\LoggerInterface $logger,
|
||||
array $settings
|
||||
)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->serverModel = $serverModel;
|
||||
$this->profileModel = $profileModel;
|
||||
$this->logger = $logger;
|
||||
$this->settings = array_merge($this->settings, $settings);
|
||||
}
|
||||
|
||||
public function __invoke(string $profile_uri)
|
||||
{
|
||||
if (!strlen($profile_uri)) {
|
||||
$this->logger->error('Received empty profile URI', ['class' => __CLASS__]);
|
||||
return false;
|
||||
}
|
||||
|
||||
$submit_start = microtime(true);
|
||||
|
||||
$this->logger->info('Poll profile URI: ' . $profile_uri);
|
||||
|
||||
$host = parse_url($profile_uri, PHP_URL_HOST);
|
||||
|
||||
if (!$host) {
|
||||
$this->logger->warning('Missing hostname in polled profile URL: ' . $profile_uri);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!\Friendica\Directory\Utils\Network::isPublicHost($host)) {
|
||||
$this->logger->warning('Private/reserved IP in polled profile URL: ' . $profile_uri);
|
||||
return false;
|
||||
}
|
||||
|
||||
$profileUriInfo = \Friendica\Directory\Models\Profile::extractInfoFromProfileUrl($profile_uri);
|
||||
if (!$profileUriInfo) {
|
||||
$this->logger->warning('Profile URI invalid');
|
||||
return false;
|
||||
}
|
||||
|
||||
$server = $this->serverModel->getByUrlAlias($profileUriInfo['server_uri']);
|
||||
if (!$server) {
|
||||
$this->atlas->perform('INSERT IGNORE INTO `server_poll_queue` SET `base_url` = :base_url', ['base_url' => $profileUriInfo['server_uri']]);
|
||||
|
||||
// No server entry yet, no need to continue.
|
||||
$this->logger->info('Profile poll aborted, no server entry yet for ' . $profileUriInfo['server_uri']);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($server['hidden']) {
|
||||
$this->logger->info('Profile poll aborted, server is hidden: ' . $server['base_url']);
|
||||
return false;
|
||||
}
|
||||
|
||||
$username = $profileUriInfo['username'];
|
||||
$addr = $profileUriInfo['addr'];
|
||||
|
||||
$profile_id = $this->atlas->fetchValue(
|
||||
'SELECT `id` FROM `profile` WHERE `server_id` = :server_id AND `username` = :username',
|
||||
['server_id' => $server['id'], 'username' => $username]
|
||||
);
|
||||
|
||||
if ($profile_id) {
|
||||
$this->atlas->perform(
|
||||
'UPDATE `profile` SET
|
||||
`available` = 0,
|
||||
`updated` = NOW()
|
||||
WHERE `id` = :profile_id',
|
||||
['profile_id' => [$profile_id, \PDO::PARAM_INT]]
|
||||
);
|
||||
|
||||
$this->atlas->perform(
|
||||
'DELETE FROM `tag` WHERE `profile_id` = :profile_id',
|
||||
['profile_id' => [$profile_id, \PDO::PARAM_INT]]
|
||||
);
|
||||
}
|
||||
|
||||
//Skip the profile scrape?
|
||||
$noscrape = $server['noscrape_url'];
|
||||
|
||||
$params = [];
|
||||
if ($noscrape) {
|
||||
$this->logger->debug('Calling ' . $server['noscrape_url'] . '/' . $username);
|
||||
$params = \Friendica\Directory\Utils\Scrape::retrieveNoScrapeData($server['noscrape_url'] . '/' . $username);
|
||||
$noscrape = !!$params; //If the result was false, do a scrape after all.
|
||||
}
|
||||
|
||||
if (!$noscrape) {
|
||||
$this->logger->notice('Parsing profile page ' . $profile_uri);
|
||||
$params = \Friendica\Directory\Utils\Scrape::retrieveProfileData($profile_uri);
|
||||
}
|
||||
|
||||
// Empty result is due to an offline site.
|
||||
if (count($params) < 2) {
|
||||
//But for sites that are already in bad status. Do a cleanup now.
|
||||
if ($profile_id && $server['health_score'] < $this->settings['remove_profile_health_threshold']) {
|
||||
$this->profileModel->deleteById($profile_id);
|
||||
}
|
||||
|
||||
$this->logger->info('Poll aborted, empty result');
|
||||
return false;
|
||||
} elseif (!empty($params['explicit-hide']) && $profile_id) {
|
||||
// We don't care about valid dfrn if the user indicates to be hidden.
|
||||
$this->profileModel->deleteById($profile_id);
|
||||
$this->logger->info('Poll aborted, profile asked to be removed from directory');
|
||||
return true; //This is a good update.
|
||||
}
|
||||
|
||||
if (!empty($params['hide']) || empty($params['fn']) || empty($params['photo'])) {
|
||||
if ($profile_id) {
|
||||
$this->profileModel->deleteById($profile_id);
|
||||
}
|
||||
|
||||
if (!empty($params['hide'])) {
|
||||
$this->logger->info('Poll aborted, hidden profile.');
|
||||
} else {
|
||||
$this->logger->info('Poll aborted, incomplete profile.');
|
||||
}
|
||||
|
||||
return true; //This is a good update.
|
||||
}
|
||||
|
||||
// This is most likely a problem with the site configuration. Ignore.
|
||||
if (self::validateParams($params)) {
|
||||
$this->logger->warning('Poll aborted, parameters invalid.', ['params' => $params]);
|
||||
return false;
|
||||
}
|
||||
|
||||
$account_type = 'People';
|
||||
if (!empty($params['comm'])) {
|
||||
$account_type = 'Forum';
|
||||
}
|
||||
|
||||
$tags = [];
|
||||
if (!empty($params['tags'])) {
|
||||
$incoming_tags = explode(' ', $params['tags']);
|
||||
foreach ($incoming_tags as $term) {
|
||||
$term = strip_tags(trim($term));
|
||||
$term = substr($term, 0, 254);
|
||||
|
||||
$tags[] = $term;
|
||||
}
|
||||
|
||||
$tags = array_unique($tags);
|
||||
}
|
||||
|
||||
$filled_fields = intval(!empty($params['pdesc'])) * 4 + intval(!empty($params['tags'])) * 2 + intval(!empty($params['locality']) || !empty($params['region']) || !empty($params['country-name']));
|
||||
|
||||
$this->atlas->perform('INSERT INTO `profile` SET
|
||||
`id` = :profile_id,
|
||||
`server_id` = :server_id,
|
||||
`username` = :username,
|
||||
`name` = :name,
|
||||
`pdesc` = :pdesc,
|
||||
`locality` = :locality,
|
||||
`region` = :region,
|
||||
`country` = :country,
|
||||
`profile_url` = :profile_url,
|
||||
`dfrn_request` = :dfrn_request,
|
||||
`tags` = :tags,
|
||||
`addr` = :addr,
|
||||
`account_type` = :account_type,
|
||||
`filled_fields` = :filled_fields,
|
||||
`last_activity` = :last_activity,
|
||||
`available` = 1,
|
||||
`created` = NOW(),
|
||||
`updated` = NOW()
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`server_id` = :server_id,
|
||||
`username` = :username,
|
||||
`name` = :name,
|
||||
`pdesc` = :pdesc,
|
||||
`locality` = :locality,
|
||||
`region` = :region,
|
||||
`country` = :country,
|
||||
`profile_url` = :profile_url,
|
||||
`dfrn_request` = :dfrn_request,
|
||||
`photo` = :photo,
|
||||
`tags` = :tags,
|
||||
`addr` = :addr,
|
||||
`account_type` = :account_type,
|
||||
`filled_fields` = :filled_fields,
|
||||
`last_activity` = :last_activity,
|
||||
`available` = 1,
|
||||
`updated` = NOW()',
|
||||
[
|
||||
'profile_id' => $profile_id,
|
||||
'server_id' => $server['id'],
|
||||
'username' => $username,
|
||||
'name' => $params['fn'],
|
||||
'pdesc' => $params['pdesc'] ?? '',
|
||||
'locality' => $params['locality'] ?? '',
|
||||
'region' => $params['region'] ?? '',
|
||||
'country' => $params['country-name'] ?? '',
|
||||
'profile_url' => $profile_uri,
|
||||
'dfrn_request' => $params['dfrn-request'] ?? null,
|
||||
'photo' => $params['photo'],
|
||||
'tags' => implode(' ', $tags),
|
||||
'addr' => $addr,
|
||||
'account_type' => $account_type,
|
||||
'filled_fields' => $filled_fields,
|
||||
'last_activity' => $params['last-activity'] ?? null,
|
||||
]
|
||||
);
|
||||
|
||||
if (!$profile_id) {
|
||||
$profile_id = $this->atlas->lastInsertId();
|
||||
}
|
||||
|
||||
if (!empty($params['tags'])) {
|
||||
$incoming_tags = explode(' ', $params['tags']);
|
||||
foreach ($incoming_tags as $term) {
|
||||
$term = strip_tags(trim($term));
|
||||
$term = substr($term, 0, 254);
|
||||
|
||||
if (strlen($term)) {
|
||||
$this->atlas->perform('INSERT IGNORE INTO `tag` (`profile_id`, `term`) VALUES (:profile_id, :term)', ['term' => $term, 'profile_id' => $profile_id]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$submit_photo_start = microtime(true);
|
||||
|
||||
$status = false;
|
||||
|
||||
if ($profile_id) {
|
||||
$img_str = \Friendica\Directory\Utils\Network::fetchURL($params['photo'], true);
|
||||
$img = new \Friendica\Directory\Utils\Photo($img_str);
|
||||
if ($img->getImage()) {
|
||||
$img->scaleImageSquare(80);
|
||||
|
||||
$this->atlas->perform('INSERT INTO `photo` SET
|
||||
`profile_id` = :profile_id,
|
||||
`data` = :data
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`data` = :data',
|
||||
[
|
||||
'profile_id' => $profile_id,
|
||||
'data' => $img->imageString()
|
||||
]
|
||||
);
|
||||
}
|
||||
$status = true;
|
||||
}
|
||||
|
||||
$submit_end = microtime(true);
|
||||
$photo_time = round(($submit_end - $submit_photo_start) * 1000);
|
||||
$time = round(($submit_end - $submit_start) * 1000);
|
||||
|
||||
//Record the scrape speed in a scrapes table.
|
||||
if ($server && $status) {
|
||||
$this->atlas->perform('INSERT INTO `site_scrape` SET
|
||||
`server_id` = :server_id,
|
||||
`request_time` = :request_time,
|
||||
`scrape_time` = :scrape_time,
|
||||
`photo_time` = :photo_time,
|
||||
`total_time` = :total_time',
|
||||
[
|
||||
'server_id' => $server['id'],
|
||||
'request_time' => $params['_timings']['fetch'],
|
||||
'scrape_time' => $params['_timings']['scrape'],
|
||||
'photo_time' => $photo_time,
|
||||
'total_time' => $time
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$this->logger->info('Profile poll successful');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function validateParams(array $params): int
|
||||
{
|
||||
$errors = 0;
|
||||
if (empty($params['key'])) {
|
||||
$errors++;
|
||||
}
|
||||
if (empty($params['dfrn-request'])) {
|
||||
$errors++;
|
||||
}
|
||||
if (empty($params['dfrn-confirm'])) {
|
||||
$errors++;
|
||||
}
|
||||
if (empty($params['dfrn-notify'])) {
|
||||
$errors++;
|
||||
}
|
||||
if (empty($params['dfrn-poll'])) {
|
||||
$errors++;
|
||||
}
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
}
|
369
src/classes/Pollers/Server.php
Normal file
369
src/classes/Pollers/Server.php
Normal file
|
@ -0,0 +1,369 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Pollers;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Server
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $atlas;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\ProfilePollQueue
|
||||
*/
|
||||
private $profilePollQueueModel;
|
||||
/**
|
||||
* @var \Friendica\Directory\Models\Server
|
||||
*/
|
||||
private $serverModel;
|
||||
/**
|
||||
* @var \Psr\SimpleCache\CacheInterface
|
||||
*/
|
||||
private $simplecache;
|
||||
|
||||
/**
|
||||
* @var \Psr\Log\LoggerInterface
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $settings = [
|
||||
'probe_timeout' => 5
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
\Atlas\Pdo\Connection $atlas,
|
||||
\Friendica\Directory\Models\ProfilePollQueue $profilePollQueueModel,
|
||||
\Friendica\Directory\Models\Server $serverModel,
|
||||
\Psr\SimpleCache\CacheInterface $simplecache,
|
||||
\Psr\Log\LoggerInterface $logger,
|
||||
array $settings)
|
||||
{
|
||||
$this->atlas = $atlas;
|
||||
$this->profilePollQueueModel = $profilePollQueueModel;
|
||||
$this->serverModel = $serverModel;
|
||||
$this->simplecache = $simplecache;
|
||||
$this->logger = $logger;
|
||||
$this->settings = array_merge($this->settings, $settings);
|
||||
}
|
||||
|
||||
public function __invoke(string $polled_url): int
|
||||
{
|
||||
$this->logger->info('Poll server with URL: ' . $polled_url);
|
||||
|
||||
$host = parse_url($polled_url, PHP_URL_HOST);
|
||||
|
||||
if (!$host) {
|
||||
$this->logger->warning('Missing hostname in polled server URL: ' . $polled_url);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!\Friendica\Directory\Utils\Network::isPublicHost($host)) {
|
||||
$this->logger->warning('Private/reserved IP in polled server URL: ' . $polled_url);
|
||||
return 0;
|
||||
}
|
||||
|
||||
$server = $this->serverModel->getByUrlAlias($polled_url);
|
||||
|
||||
if (
|
||||
$server
|
||||
&& substr($polled_url, 0, 7) == 'http://'
|
||||
&& substr($server['base_url'], 0, 8) == 'https://'
|
||||
) {
|
||||
$this->logger->info('Favoring the HTTPS version of server with URL: ' . $polled_url);
|
||||
return $server['id'];
|
||||
}
|
||||
|
||||
if ($server) {
|
||||
$this->atlas->perform('UPDATE `server` SET `available` = 0 WHERE `id` = :server_id', ['server_id' => $server['id']]);
|
||||
}
|
||||
|
||||
$probe_result = $this->getProbeResult($polled_url);
|
||||
|
||||
$parse_success = !empty($probe_result['data']);
|
||||
|
||||
if ($parse_success) {
|
||||
$base_url = $probe_result['data']['url'];
|
||||
|
||||
// Maybe we know the server under the canonical URL?
|
||||
if (!$server) {
|
||||
$server = $this->serverModel->getByUrlAlias($base_url);
|
||||
}
|
||||
|
||||
if (!$server) {
|
||||
$this->atlas->perform('INSERT INTO `server` SET
|
||||
`base_url` = :base_url,
|
||||
`first_noticed` = NOW(),
|
||||
`available` = 0,
|
||||
`health_score` = 50',
|
||||
['base_url' => $polled_url]
|
||||
);
|
||||
|
||||
$server = [
|
||||
'id' => $this->atlas->lastInsertId(),
|
||||
'base_url' => $base_url,
|
||||
'health_score' => 50
|
||||
];
|
||||
}
|
||||
|
||||
$this->serverModel->addAliasToServer($server['id'], $polled_url);
|
||||
$this->serverModel->addAliasToServer($server['id'], $base_url);
|
||||
|
||||
$avg_ping = $this->getAvgPing($base_url);
|
||||
if ($probe_result['time'] && $avg_ping) {
|
||||
$speed_score = max(1, $avg_ping > 10 ? $probe_result['time'] / $avg_ping : $probe_result['time'] / 50);
|
||||
} else {
|
||||
$speed_score = null;
|
||||
}
|
||||
|
||||
$this->atlas->perform('INSERT INTO `site_probe`
|
||||
SET `server_id` = :server_id,
|
||||
`request_time` = :request_time,
|
||||
`avg_ping` = :avg_ping,
|
||||
`speed_score` = :speed_score,
|
||||
`timestamp` = NOW()',
|
||||
[
|
||||
'server_id' => $server['id'],
|
||||
'request_time' => $probe_result['time'],
|
||||
'avg_ping' => $avg_ping,
|
||||
'speed_score' => $speed_score
|
||||
]
|
||||
);
|
||||
|
||||
if (isset($probe_result['data']['addons'])) {
|
||||
$addons = $probe_result['data']['addons'];
|
||||
} else {
|
||||
// Backward compatibility
|
||||
$addons = $probe_result['data']['plugins'];
|
||||
}
|
||||
|
||||
$this->atlas->perform(
|
||||
'UPDATE `server`
|
||||
SET `available` = 1,
|
||||
`last_seen` = NOW(),
|
||||
`base_url` = :base_url,
|
||||
`name` = :name,
|
||||
`version` = :version,
|
||||
`addons` = :addons,
|
||||
`reg_policy` = :reg_policy,
|
||||
`info` = :info,
|
||||
`admin_name` = :admin_name,
|
||||
`admin_profile` = :admin_profile,
|
||||
`noscrape_url` = :noscrape_url,
|
||||
`ssl_state` = :ssl_state
|
||||
WHERE `id` = :server_id',
|
||||
[
|
||||
'server_id' => $server['id'],
|
||||
'base_url' => strtolower($probe_result['data']['url']),
|
||||
'name' => $probe_result['data']['site_name'],
|
||||
'version' => $probe_result['data']['version'],
|
||||
'addons' => implode(',', $addons),
|
||||
'reg_policy' => $probe_result['data']['register_policy'],
|
||||
'info' => $probe_result['data']['info'],
|
||||
'admin_name' => $probe_result['data']['admin']['name'],
|
||||
'admin_profile' => $probe_result['data']['admin']['profile'],
|
||||
'noscrape_url' => $probe_result['data']['no_scrape_url'] ?? null,
|
||||
'ssl_state' => $probe_result['ssl_state']
|
||||
]
|
||||
);
|
||||
|
||||
//Add the admin to the directory
|
||||
$this->profilePollQueueModel->add($probe_result['data']['admin']['profile']);
|
||||
}
|
||||
|
||||
if ($server) {
|
||||
//Get the new health.
|
||||
$version = $parse_success ? $probe_result['data']['version'] : '';
|
||||
$health_score = $this->computeHealthScore($server['health_score'], $parse_success, $probe_result['time'], $version, $probe_result['ssl_state']);
|
||||
|
||||
$this->atlas->perform(
|
||||
'UPDATE `server` SET `health_score` = :health_score WHERE `id` = :server_id',
|
||||
['health_score' => $health_score, 'server_id' => $server['id']]
|
||||
);
|
||||
}
|
||||
|
||||
if ($parse_success) {
|
||||
$this->logger->info('Server poll successful');
|
||||
} else {
|
||||
$this->logger->info('Server poll unsuccessful');
|
||||
}
|
||||
|
||||
return $parse_success ? $server['id'] : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $base_url
|
||||
* @return float|null
|
||||
*/
|
||||
private function getAvgPing(string $base_url)
|
||||
{
|
||||
$net_ping = \Net_Ping::factory();
|
||||
$net_ping->setArgs(['count' => 5]);
|
||||
$ping_result = $net_ping->ping(parse_url($base_url, PHP_URL_HOST));
|
||||
|
||||
if (is_a($ping_result, 'Net_Ping_Result')) {
|
||||
$avg_ping = $ping_result->getAvg();
|
||||
} else {
|
||||
$avg_ping = null;
|
||||
}
|
||||
|
||||
unset($net_ping);
|
||||
|
||||
return $avg_ping;
|
||||
}
|
||||
|
||||
private function getProbeResult(string $base_url): array
|
||||
{
|
||||
//Prepare the CURL call.
|
||||
$handle = curl_init();
|
||||
$options = array(
|
||||
//Timeouts
|
||||
CURLOPT_TIMEOUT => max($this->settings['probe_timeout'], 1), //Minimum of 1 second timeout.
|
||||
CURLOPT_CONNECTTIMEOUT => 1,
|
||||
//Redirecting
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_MAXREDIRS => 8,
|
||||
//SSL
|
||||
CURLOPT_SSL_VERIFYPEER => true,
|
||||
// CURLOPT_VERBOSE => true,
|
||||
// CURLOPT_CERTINFO => true,
|
||||
CURLOPT_SSL_VERIFYHOST => 2,
|
||||
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
|
||||
//Basic request
|
||||
CURLOPT_USERAGENT => 'friendica-directory-probe-1.0',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_URL => $base_url . '/friendica/json'
|
||||
);
|
||||
curl_setopt_array($handle, $options);
|
||||
|
||||
//Probe the site.
|
||||
$probe_start = microtime(true);
|
||||
$probe_data = curl_exec($handle);
|
||||
$probe_end = microtime(true);
|
||||
|
||||
//Check for SSL problems.
|
||||
$curl_statuscode = curl_errno($handle);
|
||||
$sslcert_issues = in_array($curl_statuscode, array(
|
||||
60, //Could not authenticate certificate with known CA's
|
||||
83 //Issuer check failed
|
||||
));
|
||||
|
||||
//When it's the certificate that doesn't work.
|
||||
if ($sslcert_issues) {
|
||||
//Probe again, without strict SSL.
|
||||
$options[CURLOPT_SSL_VERIFYPEER] = false;
|
||||
|
||||
//Replace the handle.
|
||||
curl_close($handle);
|
||||
$handle = curl_init();
|
||||
curl_setopt_array($handle, $options);
|
||||
|
||||
//Probe.
|
||||
$probe_start = microtime(true);
|
||||
$probe_data = curl_exec($handle);
|
||||
$probe_end = microtime(true);
|
||||
|
||||
//Store new status.
|
||||
$curl_statuscode = curl_errno($handle);
|
||||
}
|
||||
|
||||
//Gather more meta.
|
||||
$time = round(($probe_end - $probe_start) * 1000);
|
||||
$curl_info = curl_getinfo($handle);
|
||||
|
||||
//Done with CURL now.
|
||||
curl_close($handle);
|
||||
|
||||
try {
|
||||
$data = json_decode($probe_data, true);
|
||||
} catch (\Exception $ex) {
|
||||
$data = false;
|
||||
}
|
||||
|
||||
$ssl_state = 0;
|
||||
if (parse_url($base_url, PHP_URL_SCHEME) == 'https') {
|
||||
if ($sslcert_issues) {
|
||||
$ssl_state = -1;
|
||||
} else {
|
||||
$ssl_state = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return ['data' => $data, 'time' => $time, 'curl_info' => $curl_info, 'ssl_state' => $ssl_state];
|
||||
}
|
||||
|
||||
private function computeHealthScore(int $original_health, bool $probe_success, int $time = null, string $version = null, int $ssl_state = null): int
|
||||
{
|
||||
//Probe failed, costs you 30 points.
|
||||
if (!$probe_success) {
|
||||
return max($original_health - 30, -100);
|
||||
}
|
||||
|
||||
//A good probe gives you 10 points.
|
||||
$delta = 10;
|
||||
$max_health = 100;
|
||||
|
||||
//Speed scoring.
|
||||
if (intval($time) > 0) {
|
||||
//Penalty / bonus points.
|
||||
if ($time > 800) {
|
||||
$delta -= 10; //Bad speed.
|
||||
} elseif ($time > 400) {
|
||||
$delta -= 5; //Still not good.
|
||||
} elseif ($time > 250) {
|
||||
$delta += 0; //This is normal.
|
||||
} elseif ($time > 120) {
|
||||
$delta += 5; //Good speed.
|
||||
} else {
|
||||
$delta += 10; //Excellent speed.
|
||||
}
|
||||
|
||||
//Cap for bad speeds.
|
||||
if ($time > 800) {
|
||||
$max_health = 40;
|
||||
} elseif ($time > 400) {
|
||||
$max_health = 60;
|
||||
}
|
||||
}
|
||||
|
||||
if ($ssl_state == 1) {
|
||||
$delta += 10;
|
||||
} elseif ($ssl_state == -1) {
|
||||
$delta -= 10;
|
||||
}
|
||||
|
||||
//Version check.
|
||||
if (!empty($version)) {
|
||||
$versionParts = explode('.', $version);
|
||||
|
||||
if (intval($versionParts[0]) == 3) {
|
||||
$max_health = 30; // Really old version
|
||||
} else {
|
||||
$stable_version = $this->simplecache->get('stable_version');
|
||||
if (!$stable_version) {
|
||||
$stable_version = trim(file_get_contents('https://git.friendi.ca/friendica/friendica/raw/branch/master/VERSION'));
|
||||
$this->simplecache->set('stable_version', $stable_version);
|
||||
}
|
||||
|
||||
$dev_version = $this->simplecache->get('dev_version');
|
||||
if (!$dev_version) {
|
||||
$dev_version = trim(file_get_contents('https://git.friendi.ca/friendica/friendica/raw/branch/develop/VERSION'));
|
||||
$this->simplecache->set('dev_version', $dev_version);
|
||||
}
|
||||
|
||||
if ($version == $dev_version) {
|
||||
$max_health = 95; //Develop can be unstable
|
||||
} elseif ($version !== $stable_version) {
|
||||
$delta = min($delta, 0) - 10; // Losing score as time passes if node isn't updated
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return max(min($max_health, $original_health + $delta), -100);
|
||||
}
|
||||
}
|
21
src/classes/Routes/Console/BaseRoute.php
Normal file
21
src/classes/Routes/Console/BaseRoute.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
abstract class BaseRoute
|
||||
{
|
||||
/**
|
||||
* @var \Slim\Container
|
||||
*/
|
||||
protected $container;
|
||||
|
||||
public function __construct(\Slim\Container $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
}
|
||||
|
||||
public abstract function __invoke(array $argv);
|
||||
}
|
17
src/classes/Routes/Console/DirectoryAdd.php
Normal file
17
src/classes/Routes/Console/DirectoryAdd.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class DirectoryAdd extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\DirectoryAdd(
|
||||
$this->container->get('atlas'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
18
src/classes/Routes/Console/DirectoryPoll.php
Normal file
18
src/classes/Routes/Console/DirectoryPoll.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class DirectoryPoll extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\DirectoryPoll(
|
||||
$this->container->get('atlas'),
|
||||
$this->container->get('\Friendica\Directory\Pollers\Directory'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
16
src/classes/Routes/Console/Install.php
Normal file
16
src/classes/Routes/Console/Install.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Install extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\Install(
|
||||
$this->container->get('logger')
|
||||
));
|
||||
}
|
||||
}
|
17
src/classes/Routes/Console/ProfileHide.php
Normal file
17
src/classes/Routes/Console/ProfileHide.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ProfileHide extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\ProfileHide(
|
||||
$this->container->get('atlas'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
17
src/classes/Routes/Console/ProfilePoll.php
Normal file
17
src/classes/Routes/Console/ProfilePoll.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ProfilePoll extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\ProfilePoll(
|
||||
$this->container->get('\Friendica\Directory\Pollers\Profile'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
18
src/classes/Routes/Console/ServerHide.php
Normal file
18
src/classes/Routes/Console/ServerHide.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ServerHide extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\ServerHide(
|
||||
$this->container->get('atlas'),
|
||||
$this->container->get('\Friendica\Directory\Models\Server'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
18
src/classes/Routes/Console/ServerPoll.php
Normal file
18
src/classes/Routes/Console/ServerPoll.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class ServerPoll extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\ServerPoll(
|
||||
$this->container->get('atlas'),
|
||||
$this->container->get('\Friendica\Directory\Pollers\Server'),
|
||||
$args
|
||||
));
|
||||
}
|
||||
}
|
17
src/classes/Routes/Console/UpdateDb.php
Normal file
17
src/classes/Routes/Console/UpdateDb.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Console;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class UpdateDb extends BaseRoute
|
||||
{
|
||||
public function __invoke(array $args)
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Console\UpdateDb(
|
||||
$this->container->get('logger'),
|
||||
$this->container->get('migration')
|
||||
));
|
||||
}
|
||||
}
|
21
src/classes/Routes/Http/BaseRoute.php
Normal file
21
src/classes/Routes/Http/BaseRoute.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
abstract class BaseRoute
|
||||
{
|
||||
/**
|
||||
* @var \Slim\Container
|
||||
*/
|
||||
protected $container;
|
||||
|
||||
public function __construct(\Slim\Container $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
}
|
||||
|
||||
public abstract function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response;
|
||||
}
|
20
src/classes/Routes/Http/Directory.php
Normal file
20
src/classes/Routes/Http/Directory.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Directory extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Web\Directory(
|
||||
$this->container->atlas,
|
||||
$this->container->get('\Friendica\Directory\Models\Profile'),
|
||||
$this->container->get('\Friendica\Directory\Views\Widget\AccountTypeTabs'),
|
||||
$this->container->renderer,
|
||||
$this->container->l10n)
|
||||
)->render($request, $response, $args);
|
||||
}
|
||||
}
|
16
src/classes/Routes/Http/Photo.php
Normal file
16
src/classes/Routes/Http/Photo.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Photo extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Web\Photo(
|
||||
$this->container->atlas
|
||||
))->render($request, $response, $args);
|
||||
}
|
||||
}
|
30
src/classes/Routes/Http/Search.php
Normal file
30
src/classes/Routes/Http/Search.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Search extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
if ($request->getAttribute('negotiation')->getMediaType() == 'application/json') {
|
||||
$controller = new \Friendica\Directory\Controllers\Api\Search(
|
||||
$this->container->atlas,
|
||||
$this->container->get('\Friendica\Directory\Models\Profile'),
|
||||
$this->container->l10n
|
||||
);
|
||||
} else {
|
||||
$controller = new \Friendica\Directory\Controllers\Web\Search(
|
||||
$this->container->atlas,
|
||||
$this->container->get('\Friendica\Directory\Models\Profile'),
|
||||
$this->container->get('\Friendica\Directory\Views\Widget\AccountTypeTabs'),
|
||||
$this->container->renderer,
|
||||
$this->container->l10n
|
||||
);
|
||||
}
|
||||
|
||||
return $controller->render($request, $response, $args);
|
||||
}
|
||||
}
|
19
src/classes/Routes/Http/Servers.php
Normal file
19
src/classes/Routes/Http/Servers.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Servers extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Web\Servers(
|
||||
$this->container->atlas,
|
||||
$this->container->renderer,
|
||||
$this->container->l10n,
|
||||
$this->container->simplecache)
|
||||
)->render($request, $response);
|
||||
}
|
||||
}
|
18
src/classes/Routes/Http/Submit.php
Normal file
18
src/classes/Routes/Http/Submit.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Submit extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Api\Submit(
|
||||
$this->container->atlas,
|
||||
$this->container->get('\Friendica\Directory\Models\ProfilePollQueue'),
|
||||
$this->container->logger
|
||||
))->execute($request, $response);
|
||||
}
|
||||
}
|
17
src/classes/Routes/Http/SyncPull.php
Normal file
17
src/classes/Routes/Http/SyncPull.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Routes\Http;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class SyncPull extends BaseRoute
|
||||
{
|
||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||
{
|
||||
return (new \Friendica\Directory\Controllers\Api\SyncPull(
|
||||
$this->container->atlas,
|
||||
$this->container->logger
|
||||
))->execute($request, $response, $args);
|
||||
}
|
||||
}
|
66
src/classes/Utils/Network.php
Normal file
66
src/classes/Utils/Network.php
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
namespace Friendica\Directory\Utils;
|
||||
|
||||
/**
|
||||
* Description of Network
|
||||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Network
|
||||
{
|
||||
public static function fetchURL(string $url, bool $binary = false, int $timeout = 20): string
|
||||
{
|
||||
$ch = curl_init($url);
|
||||
if (!$ch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, max(intval($timeout), 1)); //Minimum of 1 second timeout.
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
curl_setopt($ch, CURLOPT_MAXREDIRS, 8);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
if ($binary) {
|
||||
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
|
||||
}
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
$s = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
return $s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a hostname is public and non-reserved
|
||||
*
|
||||
* @param string $host
|
||||
* @return bool
|
||||
*/
|
||||
public static function isPublicHost(string $host): bool
|
||||
{
|
||||
if (!$host) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($host === 'localhost') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// RFC 2606
|
||||
if ($host === 'example.com' || $host === 'example.net' || $host === 'example.org') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (filter_var($host, FILTER_VALIDATE_IP) && !filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
183
src/classes/Utils/Photo.php
Normal file
183
src/classes/Utils/Photo.php
Normal file
|
@ -0,0 +1,183 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Utils;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Photo
|
||||
{
|
||||
/**
|
||||
* @var resource|false
|
||||
*/
|
||||
private $image;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $width;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $height;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->image = @imagecreatefromstring($data);
|
||||
if ($this->image !== FALSE) {
|
||||
$this->width = imagesx($this->image);
|
||||
$this->height = imagesy($this->image);
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if ($this->image) {
|
||||
imagedestroy($this->image);
|
||||
}
|
||||
}
|
||||
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
|
||||
public function getHeight()
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function getImage()
|
||||
{
|
||||
return $this->image;
|
||||
}
|
||||
|
||||
public function scaleImage($max)
|
||||
{
|
||||
$width = $this->width;
|
||||
$height = $this->height;
|
||||
|
||||
$dest_width = $dest_height = 0;
|
||||
|
||||
if ((!$width) || (!$height)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ($width > $max && $height > $max) {
|
||||
if ($width > $height) {
|
||||
$dest_width = $max;
|
||||
$dest_height = intval(($height * $max) / $width);
|
||||
} else {
|
||||
$dest_width = intval(($width * $max) / $height);
|
||||
$dest_height = $max;
|
||||
}
|
||||
} else {
|
||||
if ($width > $max) {
|
||||
$dest_width = $max;
|
||||
$dest_height = intval(($height * $max) / $width);
|
||||
} else {
|
||||
if ($height > $max) {
|
||||
$dest_width = intval(($width * $max) / $height);
|
||||
$dest_height = $max;
|
||||
} else {
|
||||
$dest_width = $width;
|
||||
$dest_height = $height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$dest = imagecreatetruecolor($dest_width, $dest_height);
|
||||
if ($this->image) {
|
||||
imagecopyresampled($dest, $this->image, 0, 0, 0, 0, $dest_width, $dest_height, $width, $height);
|
||||
imagedestroy($this->image);
|
||||
}
|
||||
|
||||
$this->image = $dest;
|
||||
$this->width = imagesx($this->image);
|
||||
$this->height = imagesy($this->image);
|
||||
}
|
||||
|
||||
public function scaleImageUp($min)
|
||||
{
|
||||
$width = $this->width;
|
||||
$height = $this->height;
|
||||
|
||||
$dest_width = $dest_height = 0;
|
||||
|
||||
if ((!$width) || (!$height)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ($width < $min && $height < $min) {
|
||||
if ($width > $height) {
|
||||
$dest_width = $min;
|
||||
$dest_height = intval(($height * $min) / $width);
|
||||
} else {
|
||||
$dest_width = intval(($width * $min) / $height);
|
||||
$dest_height = $min;
|
||||
}
|
||||
} else {
|
||||
if ($width < $min) {
|
||||
$dest_width = $min;
|
||||
$dest_height = intval(($height * $min) / $width);
|
||||
} else {
|
||||
if ($height < $min) {
|
||||
$dest_width = intval(($width * $min) / $height);
|
||||
$dest_height = $min;
|
||||
} else {
|
||||
$dest_width = $width;
|
||||
$dest_height = $height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$dest = imagecreatetruecolor($dest_width, $dest_height);
|
||||
if ($this->image) {
|
||||
imagecopyresampled($dest, $this->image, 0, 0, 0, 0, $dest_width, $dest_height, $width, $height);
|
||||
imagedestroy($this->image);
|
||||
}
|
||||
|
||||
$this->image = $dest;
|
||||
$this->width = imagesx($this->image);
|
||||
$this->height = imagesy($this->image);
|
||||
}
|
||||
|
||||
public function scaleImageSquare($dim)
|
||||
{
|
||||
$dest = imagecreatetruecolor($dim, $dim);
|
||||
if ($this->image) {
|
||||
imagecopyresampled($dest, $this->image, 0, 0, 0, 0, $dim, $dim, $this->width, $this->height);
|
||||
imagedestroy($this->image);
|
||||
}
|
||||
|
||||
$this->image = $dest;
|
||||
$this->width = imagesx($this->image);
|
||||
$this->height = imagesy($this->image);
|
||||
}
|
||||
|
||||
public function cropImage($max, $x, $y, $w, $h)
|
||||
{
|
||||
$dest = imagecreatetruecolor($max, $max);
|
||||
if ($this->image) {
|
||||
imagecopyresampled($dest, $this->image, 0, 0, $x, $y, $max, $max, $w, $h);
|
||||
imagedestroy($this->image);
|
||||
}
|
||||
|
||||
$this->image = $dest;
|
||||
$this->width = imagesx($this->image);
|
||||
$this->height = imagesy($this->image);
|
||||
}
|
||||
|
||||
public function saveImage($path)
|
||||
{
|
||||
imagejpeg($this->image, $path, 100);
|
||||
}
|
||||
|
||||
public function imageString()
|
||||
{
|
||||
ob_start();
|
||||
imagejpeg($this->image, NULL, 100);
|
||||
$return = ob_get_clean();
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
|
203
src/classes/Utils/Scrape.php
Normal file
203
src/classes/Utils/Scrape.php
Normal file
|
@ -0,0 +1,203 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Utils;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Scrape
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $url
|
||||
* @return array|false
|
||||
*/
|
||||
public static function retrieveNoScrapeData(string $url)
|
||||
{
|
||||
$submit_noscrape_start = microtime(true);
|
||||
$data = Network::fetchURL($url);
|
||||
$submit_noscrape_request_end = microtime(true);
|
||||
|
||||
if (empty($data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$params = json_decode($data, true);
|
||||
if (!$params || !count($params)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isset($params['tags'])) {
|
||||
$params['tags'] = implode(' ', (array)$params['tags']);
|
||||
} else {
|
||||
$params['tags'] = '';
|
||||
}
|
||||
|
||||
$submit_noscrape_end = microtime(true);
|
||||
$params['_timings'] = array(
|
||||
'fetch' => round(($submit_noscrape_request_end - $submit_noscrape_start) * 1000),
|
||||
'scrape' => round(($submit_noscrape_end - $submit_noscrape_request_end) * 1000)
|
||||
);
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
||||
public static function retrieveProfileData(string $url, int $max_nodes = 3500): array
|
||||
{
|
||||
|
||||
$minNodes = 100; //Lets do at least 100 nodes per type.
|
||||
$timeout = 10; //Timeout will affect batch processing.
|
||||
|
||||
//Try and cheat our way into faster profiles.
|
||||
if (strpos($url, 'tab=profile') === false) {
|
||||
$url .= (strpos($url, '?') > 0 ? '&' : '?') . 'tab=profile';
|
||||
}
|
||||
|
||||
$scrape_start = microtime(true);
|
||||
|
||||
$params = [];
|
||||
$html = Network::fetchURL($url, $timeout);
|
||||
|
||||
$scrape_fetch_end = microtime(true);
|
||||
|
||||
if (!$html) {
|
||||
return $params;
|
||||
}
|
||||
|
||||
$html5 = new \Masterminds\HTML5();
|
||||
$dom = $html5->loadHTML($html);
|
||||
|
||||
if (!$dom) {
|
||||
return $params;
|
||||
}
|
||||
|
||||
$items = $dom->getElementsByTagName('meta');
|
||||
|
||||
// get DFRN link elements
|
||||
$nodes_left = max(intval($max_nodes), $minNodes);
|
||||
$targets = array('hide', 'comm', 'tags');
|
||||
$targets_left = count($targets);
|
||||
foreach ($items as $item) {
|
||||
$meta_name = $item->getAttribute('name');
|
||||
if ($meta_name == 'dfrn-global-visibility') {
|
||||
$z = strtolower(trim($item->getAttribute('content')));
|
||||
if ($z != 'true') {
|
||||
$params['hide'] = 1;
|
||||
}
|
||||
if ($z === 'false') {
|
||||
$params['explicit-hide'] = 1;
|
||||
}
|
||||
$targets_left = self::popScrapeTarget($targets, 'hide');
|
||||
}
|
||||
if ($meta_name == 'friendika.community' || $meta_name == 'friendica.community') {
|
||||
$z = strtolower(trim($item->getAttribute('content')));
|
||||
if ($z == 'true') {
|
||||
$params['comm'] = 1;
|
||||
}
|
||||
$targets_left = self::popScrapeTarget($targets, 'comm');
|
||||
}
|
||||
if ($meta_name == 'keywords') {
|
||||
$z = str_replace(',', ' ', strtolower(trim($item->getAttribute('content'))));
|
||||
if (strlen($z)) {
|
||||
$params['tags'] = $z;
|
||||
}
|
||||
$targets_left = self::popScrapeTarget($targets, 'tags');
|
||||
}
|
||||
$nodes_left--;
|
||||
if ($nodes_left <= 0 || $targets_left <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$items = $dom->getElementsByTagName('link');
|
||||
|
||||
// get DFRN link elements
|
||||
|
||||
$nodes_left = max(intval($max_nodes), $minNodes);
|
||||
foreach ($items as $item) {
|
||||
$link_rel = $item->getAttribute('rel');
|
||||
if (substr($link_rel, 0, 5) == "dfrn-") {
|
||||
$params[$link_rel] = $item->getAttribute('href');
|
||||
}
|
||||
$nodes_left--;
|
||||
if ($nodes_left <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Pull out hCard profile elements
|
||||
|
||||
$nodes_left = max(intval($max_nodes), $minNodes);
|
||||
$items = $dom->getElementsByTagName('*');
|
||||
$targets = array('fn', 'pdesc', 'photo', 'key', 'locality', 'region', 'postal-code', 'country-name');
|
||||
$targets_left = count($targets);
|
||||
foreach ($items as $item) {
|
||||
if (self::attributeContains($item->getAttribute('class'), 'vcard')) {
|
||||
$level2 = $item->getElementsByTagName('*');
|
||||
foreach ($level2 as $vcard_element) {
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'fn')) {
|
||||
$params['fn'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'fn');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'title')) {
|
||||
$params['pdesc'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'pdesc');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'photo')) {
|
||||
$params['photo'] = $vcard_element->getAttribute('src');
|
||||
$targets_left = self::popScrapeTarget($targets, 'photo');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'key')) {
|
||||
$params['key'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'key');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'locality')) {
|
||||
$params['locality'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'locality');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'region')) {
|
||||
$params['region'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'region');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'postal-code')) {
|
||||
$params['postal-code'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'postal-code');
|
||||
}
|
||||
if (self::attributeContains($vcard_element->getAttribute('class'), 'country-name')) {
|
||||
$params['country-name'] = $vcard_element->textContent;
|
||||
$targets_left = self::popScrapeTarget($targets, 'country-name');
|
||||
}
|
||||
}
|
||||
}
|
||||
$nodes_left--;
|
||||
if ($nodes_left <= 0 || $targets_left <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$scrape_end = microtime(true);
|
||||
$fetch_time = round(($scrape_fetch_end - $scrape_start) * 1000);
|
||||
$scrape_time = round(($scrape_end - $scrape_fetch_end) * 1000);
|
||||
|
||||
$params['_timings'] = array(
|
||||
'fetch' => $fetch_time,
|
||||
'scrape' => $scrape_time
|
||||
);
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
||||
private static function attributeContains(string $attr, string $s): bool
|
||||
{
|
||||
$a = explode(' ', $attr);
|
||||
return count($a) && in_array($s, $a);
|
||||
}
|
||||
|
||||
private static function popScrapeTarget(array &$array, string $name): int
|
||||
{
|
||||
$at = array_search($name, $array);
|
||||
unset($array[$at]);
|
||||
return count($array);
|
||||
}
|
||||
|
||||
}
|
63
src/classes/Views/PhpRenderer.php
Normal file
63
src/classes/Views/PhpRenderer.php
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Views;
|
||||
|
||||
/**
|
||||
* Zend-Escaper wrapper for Slim PHP Renderer
|
||||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class PhpRenderer extends \Slim\Views\PhpRenderer
|
||||
{
|
||||
/**
|
||||
* @var \Zend\Escaper\Escaper
|
||||
*/
|
||||
private $escaper;
|
||||
/**
|
||||
* @var \Friendica\Directory\Content\L10n
|
||||
*/
|
||||
private $l10n;
|
||||
|
||||
public function __construct(
|
||||
\Zend\Escaper\Escaper $escaper,
|
||||
\Friendica\Directory\Content\L10n $l10n,
|
||||
string $templatePath = "",
|
||||
array $attributes = array()
|
||||
)
|
||||
{
|
||||
parent::__construct($templatePath, $attributes);
|
||||
|
||||
$this->escaper = $escaper;
|
||||
$this->l10n = $l10n;
|
||||
}
|
||||
|
||||
public function e(string $value): string
|
||||
{
|
||||
return $this->escapeHtml($value);
|
||||
}
|
||||
|
||||
public function escapeHtml(string $value): string
|
||||
{
|
||||
return $this->escaper->escapeHtml($value);
|
||||
}
|
||||
|
||||
public function escapeCss(string $value): string
|
||||
{
|
||||
return $this->escaper->escapeCss($value);
|
||||
}
|
||||
|
||||
public function escapeJs(string $value): string
|
||||
{
|
||||
return $this->escaper->escapeJs($value);
|
||||
}
|
||||
|
||||
public function escapeHtmlAttr(string $value): string
|
||||
{
|
||||
return $this->escaper->escapeHtmlAttr($value);
|
||||
}
|
||||
|
||||
public function escapeUrl(string $value): string
|
||||
{
|
||||
return $this->escaper->escapeUrl($value);
|
||||
}
|
||||
}
|
61
src/classes/Views/Widget/AccountTypeTabs.php
Normal file
61
src/classes/Views/Widget/AccountTypeTabs.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Views\Widget;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class AccountTypeTabs
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $connection;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
/**
|
||||
* @var \Slim\Router
|
||||
*/
|
||||
private $router;
|
||||
|
||||
public function __construct(\Atlas\Pdo\Connection $connection, \Friendica\Directory\Views\PhpRenderer $renderer, \Slim\Router $router)
|
||||
{
|
||||
$this->connection = $connection;
|
||||
$this->renderer = $renderer;
|
||||
$this->router = $router;
|
||||
}
|
||||
|
||||
public function render(string $route_name, string $current_type = '', array $queryParams = []): string
|
||||
{
|
||||
$stmt = '
|
||||
SELECT DISTINCT(`account_type`) AS `account_type`
|
||||
FROM `profile`
|
||||
WHERE `available`
|
||||
AND NOT `hidden`';
|
||||
$account_types = $this->connection->fetchAll($stmt);
|
||||
|
||||
$tabs = [
|
||||
[
|
||||
'title' => 'All',
|
||||
'link' => $this->router->pathFor($route_name, [], $queryParams),
|
||||
'active' => empty($current_type)
|
||||
]
|
||||
];
|
||||
|
||||
foreach ($account_types as $account_type) {
|
||||
$tabs[] = [
|
||||
'title' => $account_type['account_type'],
|
||||
'link' => $this->router->pathFor($route_name, ['account_type' => strtolower($account_type['account_type'])], $queryParams),
|
||||
'active' => strtolower($account_type['account_type']) == strtolower($current_type)
|
||||
];
|
||||
}
|
||||
|
||||
$vars = [
|
||||
'tabs' => $tabs,
|
||||
];
|
||||
|
||||
return $this->renderer->fetch('widget/accounttypetabs.phtml', $vars);
|
||||
}
|
||||
}
|
44
src/classes/Views/Widget/PopularCountries.php
Normal file
44
src/classes/Views/Widget/PopularCountries.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Views\Widget;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class PopularCountries
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $connection;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
|
||||
public function __construct(\Atlas\Pdo\Connection $connection, \Friendica\Directory\Views\PhpRenderer $renderer)
|
||||
{
|
||||
$this->connection = $connection;
|
||||
$this->renderer = $renderer;
|
||||
}
|
||||
|
||||
public function render(): string
|
||||
{
|
||||
$stmt = '
|
||||
SELECT `country`, COUNT(`country`) AS `total`
|
||||
FROM `profile`
|
||||
WHERE `country` != ""
|
||||
AND `available`
|
||||
GROUP BY `country`
|
||||
ORDER BY COUNT(`country`) DESC
|
||||
LIMIT 20';
|
||||
$countries = $this->connection->fetchAll($stmt);
|
||||
|
||||
$vars = [
|
||||
'title' => 'Popular Countries',
|
||||
'countries' => $countries
|
||||
];
|
||||
|
||||
return $this->renderer->fetch('widget/popularcountries.phtml', $vars);
|
||||
}
|
||||
}
|
37
src/classes/Views/Widget/PopularTags.php
Normal file
37
src/classes/Views/Widget/PopularTags.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Directory\Views\Widget;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class PopularTags
|
||||
{
|
||||
/**
|
||||
* @var \Atlas\Pdo\Connection
|
||||
*/
|
||||
private $connection;
|
||||
/**
|
||||
* @var \Friendica\Directory\Views\PhpRenderer
|
||||
*/
|
||||
private $renderer;
|
||||
|
||||
public function __construct(\Atlas\Pdo\Connection $connection, \Friendica\Directory\Views\PhpRenderer $renderer)
|
||||
{
|
||||
$this->connection = $connection;
|
||||
$this->renderer = $renderer;
|
||||
}
|
||||
|
||||
public function render(): string
|
||||
{
|
||||
$stmt = 'SELECT `term`, COUNT(*) AS `total` FROM `tag` GROUP BY `term` ORDER BY COUNT(`term`) DESC LIMIT 20';
|
||||
$tags = $this->connection->fetchAll($stmt);
|
||||
|
||||
$vars = [
|
||||
'title' => 'Popular Tags',
|
||||
'tags' => $tags
|
||||
];
|
||||
|
||||
return $this->renderer->fetch('widget/populartags.phtml', $vars);
|
||||
}
|
||||
}
|
140
src/dependencies.php
Normal file
140
src/dependencies.php
Normal file
|
@ -0,0 +1,140 @@
|
|||
<?php
|
||||
|
||||
use Interop\Container\ContainerInterface;
|
||||
|
||||
// DIC configuration
|
||||
|
||||
// l10n
|
||||
$container['l10n'] = function (ContainerInterface $c): Friendica\Directory\Content\L10n {
|
||||
$settings = $c->get('settings')['l10n'];
|
||||
return new Friendica\Directory\Content\L10n($settings['language'] ?: 'en', $settings['lang_path'] ?: '');
|
||||
};
|
||||
|
||||
// simple cache
|
||||
$container['simplecache'] = function (ContainerInterface $c): Sarahman\SimpleCache\FileSystemCache {
|
||||
$settings = $c->get('settings')['simplecache'];
|
||||
return new Sarahman\SimpleCache\FileSystemCache($settings['directory']);
|
||||
};
|
||||
|
||||
// zend escaper
|
||||
$container['escaper'] = function (ContainerInterface $c): Zend\Escaper\Escaper {
|
||||
$settings = $c->get('settings')['escaper'];
|
||||
return new Zend\Escaper\Escaper($settings['encoding']);
|
||||
};
|
||||
|
||||
// view renderer
|
||||
$container['renderer'] = function (ContainerInterface $c): Friendica\Directory\Views\PhpRenderer {
|
||||
$settings = $c->get('settings')['renderer'];
|
||||
return new Friendica\Directory\Views\PhpRenderer($c->get('escaper'), $c->get('l10n'), $settings['template_path']);
|
||||
};
|
||||
|
||||
// monolog
|
||||
$container['logger'] = function (ContainerInterface $c): Monolog\Logger {
|
||||
$settings = $c->get('settings')['logger'];
|
||||
$logger = new Monolog\Logger($settings['name']);
|
||||
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
||||
|
||||
switch ($settings['formatter']) {
|
||||
case 'console':
|
||||
$formatter = new Monolog\Formatter\LineFormatter("[%level_name%] %message% %context%\n");
|
||||
break;
|
||||
case 'logfile':
|
||||
default:
|
||||
$formatter = new Monolog\Formatter\LineFormatter("%datetime% - %level_name% %extra%: %message% %context%\n");
|
||||
break;
|
||||
}
|
||||
|
||||
$handler = new Monolog\Handler\StreamHandler($settings['path'], $settings['level']);
|
||||
$handler->setFormatter($formatter);
|
||||
$logger->pushHandler($handler);
|
||||
return $logger;
|
||||
};
|
||||
|
||||
// PDO wrapper
|
||||
$container['atlas'] = function (ContainerInterface $c): Atlas\Pdo\Connection {
|
||||
$args = $c->get('settings')['database'];
|
||||
|
||||
$dsn = "{$args['driver']}:dbname={$args['database']};host={$args['hostname']}";
|
||||
|
||||
$atlasConnection = Atlas\Pdo\Connection::new($dsn, $args['username'], $args['password']);
|
||||
|
||||
return $atlasConnection;
|
||||
};
|
||||
|
||||
// Database migration manager
|
||||
$container['migration'] = function (ContainerInterface $c): ByJG\DbMigration\Migration {
|
||||
$args = $c->get('settings')['database'];
|
||||
|
||||
$connectionUri = new ByJG\Util\Uri("{$args['driver']}://{$args['username']}:{$args['password']}@{$args['hostname']}/{$args['database']}");
|
||||
|
||||
$migration = new ByJG\DbMigration\Migration($connectionUri, __DIR__ . '/sql');
|
||||
|
||||
$migration->addCallbackProgress(function (string $action, int $currentVersion) use ($c): void {
|
||||
switch($action) {
|
||||
case 'reset': $c->get('logger')->notice('Resetting database schema'); break;
|
||||
case 'migrate': $c->get('logger')->notice('Migrating database schema to version ' . $currentVersion); break;
|
||||
default:
|
||||
$c->get('logger')->notice('Migration action: ' . $action . ' Current Version: ' . $currentVersion);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$migration->registerDatabase('mysql', ByJG\DbMigration\Database\MySqlDatabase::class);
|
||||
|
||||
return $migration;
|
||||
};
|
||||
|
||||
// Internal Dependency Injection
|
||||
|
||||
$container['\Friendica\Directory\Models\Profile'] = function (ContainerInterface $c): Friendica\Directory\Models\Profile {
|
||||
return new Friendica\Directory\Models\Profile($c->get('atlas'));
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Models\ProfilePollQueue'] = function (ContainerInterface $c): Friendica\Directory\Models\ProfilePollQueue {
|
||||
return new Friendica\Directory\Models\ProfilePollQueue($c->get('atlas'));
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Models\Server'] = function (ContainerInterface $c): Friendica\Directory\Models\Server {
|
||||
return new Friendica\Directory\Models\Server($c->get('atlas'));
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Pollers\Directory'] = function (ContainerInterface $c): Friendica\Directory\Pollers\Directory {
|
||||
$settings = $c->get('settings')['poller'];
|
||||
return new Friendica\Directory\Pollers\Directory(
|
||||
$c->get('atlas'),
|
||||
$c->get('\Friendica\Directory\Models\ProfilePollQueue'),
|
||||
$c->get('logger'),
|
||||
$settings ?: []
|
||||
);
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Pollers\Profile'] = function (ContainerInterface $c): Friendica\Directory\Pollers\Profile {
|
||||
$settings = $c->get('settings')['poller'];
|
||||
return new Friendica\Directory\Pollers\Profile(
|
||||
$c->get('atlas'),
|
||||
$c->get('\Friendica\Directory\Models\Server'),
|
||||
$c->get('\Friendica\Directory\Models\Profile'),
|
||||
$c->get('logger'),
|
||||
$settings ?: []
|
||||
);
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Pollers\Server'] = function (ContainerInterface $c): Friendica\Directory\Pollers\Server {
|
||||
$settings = $c->get('settings')['poller'];
|
||||
return new Friendica\Directory\Pollers\Server(
|
||||
$c->get('atlas'),
|
||||
$c->get('\Friendica\Directory\Models\ProfilePollQueue'),
|
||||
$c->get('\Friendica\Directory\Models\Server'),
|
||||
$c->get('simplecache'),
|
||||
$c->get('logger'),
|
||||
$settings ?: []
|
||||
);
|
||||
};
|
||||
|
||||
$container['\Friendica\Directory\Views\Widget\AccountTypeTabs'] = function (ContainerInterface $c): Friendica\Directory\Views\Widget\AccountTypeTabs {
|
||||
return new Friendica\Directory\Views\Widget\AccountTypeTabs(
|
||||
$c->get('atlas'),
|
||||
$c->get('renderer'),
|
||||
$c->get('router')
|
||||
);
|
||||
};
|
9
src/middleware.php
Normal file
9
src/middleware.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
// Application middleware
|
||||
|
||||
// e.g: $app->add(new \Slim\Csrf\Guard);
|
||||
// configure middleware
|
||||
|
||||
$app->add(new \Gofabian\Negotiation\NegotiationMiddleware([
|
||||
'accept' => ['text/html', 'application/json']
|
||||
]));
|
68
src/routes.php
Normal file
68
src/routes.php
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
// Routes
|
||||
|
||||
/**
|
||||
* @var $app \Slim\App
|
||||
*/
|
||||
|
||||
$app->get('/servers', \Friendica\Directory\Routes\Http\Servers::class);
|
||||
|
||||
$app->get('/search[/{account_type}]', \Friendica\Directory\Routes\Http\Search::class)->setName('search');
|
||||
|
||||
$app->get('/submit', \Friendica\Directory\Routes\Http\Submit::class);
|
||||
|
||||
$app->get('/photo/{profile_id:[0-9]+}.jpg', \Friendica\Directory\Routes\Http\Photo::class)->setName('photo');
|
||||
|
||||
|
||||
$app->get('/tag/{term}', function (Request $request, Response $response, $args) {
|
||||
|
||||
$pager = new \Friendica\Directory\Content\Pager($this->l10n, $request, 20);
|
||||
|
||||
$term = $args['term'];
|
||||
|
||||
$sql_where = 'FROM `profile` p
|
||||
JOIN `tag` t ON p.`nurl` = t.`nurl`
|
||||
WHERE `term` = :term
|
||||
AND NOT `hidden`
|
||||
AND `available`';
|
||||
|
||||
$stmt = 'SELECT *
|
||||
' . $sql_where . '
|
||||
ORDER BY `filled_fields` DESC, `last_activity` DESC, `updated` DESC LIMIT :start, :limit';
|
||||
$profiles = $this->atlas->fetchAll($stmt, [
|
||||
'term' => $term,
|
||||
'start' => [$pager->getStart(), PDO::PARAM_INT],
|
||||
'limit' => [$pager->getItemsPerPage(), PDO::PARAM_INT]
|
||||
]);
|
||||
|
||||
$stmt = 'SELECT COUNT(*) AS `total`
|
||||
' . $sql_where;
|
||||
$count = $this->atlas->fetchValue($stmt, ['term' => $term]);
|
||||
|
||||
$vars = [
|
||||
'term' => $term,
|
||||
'count' => $count,
|
||||
'profiles' => $profiles,
|
||||
'pager' => $pager->renderFull($count),
|
||||
];
|
||||
|
||||
$content = $this->renderer->fetch('tag.phtml', $vars);
|
||||
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'layout.phtml', ['baseUrl' => $request->getUri()->getBaseUrl(), 'content' => $content]);
|
||||
});
|
||||
|
||||
$app->get('/sync/pull/all', \Friendica\Directory\Routes\Http\SyncPull::class);
|
||||
$app->get('/sync/pull/since/{since}', \Friendica\Directory\Routes\Http\SyncPull::class);
|
||||
|
||||
$app->get('/VERSION', function (Request $request, Response $response) {
|
||||
$response->getBody()->write(file_get_contents(__DIR__ . '/../VERSION'));
|
||||
|
||||
return $response;
|
||||
});
|
||||
|
||||
$app->get('/[{account_type}]', \Friendica\Directory\Routes\Http\Directory::class)->setName('directory');
|
44
src/scss/friendica-directory.scss
Normal file
44
src/scss/friendica-directory.scss
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*!
|
||||
* Bootstrap v4.1.3 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2018 The Bootstrap Authors
|
||||
* Copyright 2011-2018 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
$blue: #1872A2;
|
||||
|
||||
@import "../public/assets/vendor/bootstrap/scss/functions";
|
||||
@import "../public/assets/vendor/bootstrap/scss/variables";
|
||||
@import "../public/assets/vendor/bootstrap/scss/mixins";
|
||||
@import "../public/assets/vendor/bootstrap/scss/root";
|
||||
@import "../public/assets/vendor/bootstrap/scss/reboot";
|
||||
@import "../public/assets/vendor/bootstrap/scss/type";
|
||||
@import "../public/assets/vendor/bootstrap/scss/images";
|
||||
@import "../public/assets/vendor/bootstrap/scss/code";
|
||||
@import "../public/assets/vendor/bootstrap/scss/grid";
|
||||
@import "../public/assets/vendor/bootstrap/scss/tables";
|
||||
@import "../public/assets/vendor/bootstrap/scss/forms";
|
||||
@import "../public/assets/vendor/bootstrap/scss/buttons";
|
||||
@import "../public/assets/vendor/bootstrap/scss/transitions";
|
||||
@import "../public/assets/vendor/bootstrap/scss/dropdown";
|
||||
@import "../public/assets/vendor/bootstrap/scss/button-group";
|
||||
@import "../public/assets/vendor/bootstrap/scss/input-group";
|
||||
@import "../public/assets/vendor/bootstrap/scss/custom-forms";
|
||||
@import "../public/assets/vendor/bootstrap/scss/nav";
|
||||
@import "../public/assets/vendor/bootstrap/scss/navbar";
|
||||
@import "../public/assets/vendor/bootstrap/scss/card";
|
||||
@import "../public/assets/vendor/bootstrap/scss/breadcrumb";
|
||||
@import "../public/assets/vendor/bootstrap/scss/pagination";
|
||||
@import "../public/assets/vendor/bootstrap/scss/badge";
|
||||
@import "../public/assets/vendor/bootstrap/scss/jumbotron";
|
||||
@import "../public/assets/vendor/bootstrap/scss/alert";
|
||||
@import "../public/assets/vendor/bootstrap/scss/progress";
|
||||
@import "../public/assets/vendor/bootstrap/scss/media";
|
||||
@import "../public/assets/vendor/bootstrap/scss/list-group";
|
||||
@import "../public/assets/vendor/bootstrap/scss/close";
|
||||
@import "../public/assets/vendor/bootstrap/scss/modal";
|
||||
@import "../public/assets/vendor/bootstrap/scss/tooltip";
|
||||
@import "../public/assets/vendor/bootstrap/scss/popover";
|
||||
@import "../public/assets/vendor/bootstrap/scss/carousel";
|
||||
@import "../public/assets/vendor/bootstrap/scss/utilities";
|
||||
@import "../public/assets/vendor/bootstrap/scss/print";
|
298
src/sql/base.sql
Normal file
298
src/sql/base.sql
Normal file
|
@ -0,0 +1,298 @@
|
|||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `directory_poll_queue`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `directory_poll_queue`;
|
||||
CREATE TABLE `directory_poll_queue` (
|
||||
`directory_url` varchar(190) NOT NULL,
|
||||
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`last_polled` datetime DEFAULT NULL,
|
||||
`next_poll` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`retries_count` int(11) NOT NULL DEFAULT '0'
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `photo`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `photo`;
|
||||
CREATE TABLE `photo` (
|
||||
`profile_id` int(11) NOT NULL,
|
||||
`data` mediumblob NOT NULL
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `profile`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `profile`;
|
||||
CREATE TABLE `profile` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` char(255) NOT NULL,
|
||||
`server_id` int(11) NOT NULL,
|
||||
`username` varchar(100) NOT NULL,
|
||||
`addr` varchar(150) NOT NULL,
|
||||
`account_type` varchar(20) NOT NULL DEFAULT 'People',
|
||||
`pdesc` char(255) NOT NULL,
|
||||
`locality` char(255) NOT NULL,
|
||||
`region` char(255) NOT NULL,
|
||||
`country` char(255) NOT NULL,
|
||||
`profile_url` char(255) NOT NULL,
|
||||
`dfrn_request` varchar(250) DEFAULT NULL,
|
||||
`photo` char(255) NOT NULL,
|
||||
`tags` longtext NOT NULL,
|
||||
`filled_fields` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`last_activity` varchar(7) DEFAULT NULL,
|
||||
`available` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
ON UPDATE CURRENT_TIMESTAMP,
|
||||
`hidden` tinyint(4) NOT NULL DEFAULT '0'
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `profile_poll_queue`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `profile_poll_queue`;
|
||||
CREATE TABLE `profile_poll_queue` (
|
||||
`profile_url` varchar(190) NOT NULL,
|
||||
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`last_polled` datetime DEFAULT NULL
|
||||
ON UPDATE CURRENT_TIMESTAMP,
|
||||
`next_poll` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`retries_count` int(11) NOT NULL DEFAULT '0'
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `server`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `server`;
|
||||
CREATE TABLE `server` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`base_url` varchar(190) NOT NULL,
|
||||
`path` varchar(190) NOT NULL,
|
||||
`health_score` int(11) NOT NULL DEFAULT '0',
|
||||
`noscrape_url` varchar(255) DEFAULT NULL,
|
||||
`first_noticed` datetime NOT NULL,
|
||||
`last_seen` datetime DEFAULT NULL,
|
||||
`name` varchar(255) DEFAULT NULL,
|
||||
`version` varchar(255) DEFAULT NULL,
|
||||
`addons` mediumtext,
|
||||
`reg_policy` char(32) DEFAULT NULL,
|
||||
`info` text,
|
||||
`admin_name` varchar(255) DEFAULT NULL,
|
||||
`admin_profile` varchar(255) DEFAULT NULL,
|
||||
`ssl_state` bit(1) DEFAULT NULL,
|
||||
`ssl_grade` varchar(3) DEFAULT NULL,
|
||||
`available` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`hidden` tinyint(1) NOT NULL DEFAULT '0'
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `server_alias`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `server_alias`;
|
||||
CREATE TABLE `server_alias` (
|
||||
`server_id` int(11) NOT NULL,
|
||||
`alias` varchar(190) NOT NULL,
|
||||
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
ON UPDATE CURRENT_TIMESTAMP
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `server_poll_queue`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `server_poll_queue`;
|
||||
CREATE TABLE `server_poll_queue` (
|
||||
`base_url` varchar(190) NOT NULL,
|
||||
`added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`request_count` int(11) NOT NULL DEFAULT '1',
|
||||
`last_polled` datetime DEFAULT NULL
|
||||
ON UPDATE CURRENT_TIMESTAMP,
|
||||
`next_poll` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`retries_count` int(11) NOT NULL DEFAULT '0'
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `site_probe`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `site_probe`;
|
||||
CREATE TABLE `site_probe` (
|
||||
`server_id` int(10) UNSIGNED NOT NULL,
|
||||
`timestamp` datetime NOT NULL,
|
||||
`request_time` int(10) UNSIGNED NOT NULL,
|
||||
`avg_ping` int(11) DEFAULT NULL,
|
||||
`speed_score` int(11) DEFAULT NULL
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `site_scrape`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `site_scrape`;
|
||||
CREATE TABLE `site_scrape` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`server_id` int(10) UNSIGNED NOT NULL,
|
||||
`performed` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`request_time` int(10) UNSIGNED NOT NULL,
|
||||
`scrape_time` int(10) UNSIGNED NOT NULL,
|
||||
`photo_time` int(10) UNSIGNED NOT NULL,
|
||||
`total_time` int(10) UNSIGNED NOT NULL
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tag`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `tag`;
|
||||
CREATE TABLE `tag` (
|
||||
`profile_id` int(11) NOT NULL,
|
||||
`term` char(255) NOT NULL
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `directory_poll_queue`
|
||||
--
|
||||
ALTER TABLE `directory_poll_queue`
|
||||
ADD PRIMARY KEY (`directory_url`);
|
||||
|
||||
--
|
||||
-- Indexes for table `photo`
|
||||
--
|
||||
ALTER TABLE `photo`
|
||||
ADD UNIQUE KEY `profile_id` (`profile_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `profile`
|
||||
--
|
||||
ALTER TABLE `profile`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE KEY `addr` (`addr`),
|
||||
ADD UNIQUE KEY `profile_url` (`profile_url`(190)),
|
||||
ADD KEY `profile_sorting` (`filled_fields`, `last_activity`, `updated`),
|
||||
ADD KEY `site_id` (`server_id`);
|
||||
ALTER TABLE `profile`
|
||||
ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `profile_url`, `locality`, `region`, `country`);
|
||||
|
||||
--
|
||||
-- Indexes for table `profile_poll_queue`
|
||||
--
|
||||
ALTER TABLE `profile_poll_queue`
|
||||
ADD PRIMARY KEY (`profile_url`);
|
||||
|
||||
--
|
||||
-- Indexes for table `server`
|
||||
--
|
||||
ALTER TABLE `server`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE KEY `base_url` (`base_url`) USING BTREE,
|
||||
ADD KEY `health_score` (`health_score`),
|
||||
ADD KEY `last_seen` (`last_seen`) USING BTREE;
|
||||
|
||||
--
|
||||
-- Indexes for table `server_alias`
|
||||
--
|
||||
ALTER TABLE `server_alias`
|
||||
ADD PRIMARY KEY (`alias`, `server_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `server_poll_queue`
|
||||
--
|
||||
ALTER TABLE `server_poll_queue`
|
||||
ADD PRIMARY KEY (`base_url`);
|
||||
|
||||
--
|
||||
-- Indexes for table `site_probe`
|
||||
--
|
||||
ALTER TABLE `site_probe`
|
||||
ADD PRIMARY KEY (`server_id`, `timestamp`);
|
||||
|
||||
--
|
||||
-- Indexes for table `site_scrape`
|
||||
--
|
||||
ALTER TABLE `site_scrape`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `performed` (`performed`) USING BTREE,
|
||||
ADD KEY `server_id` (`server_id`) USING BTREE;
|
||||
|
||||
--
|
||||
-- Indexes for table `tag`
|
||||
--
|
||||
ALTER TABLE `tag`
|
||||
ADD PRIMARY KEY (`profile_id`, `term`(190)) USING BTREE;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `profile`
|
||||
--
|
||||
ALTER TABLE `profile`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `server`
|
||||
--
|
||||
ALTER TABLE `server`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `site_scrape`
|
||||
--
|
||||
ALTER TABLE `site_scrape`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
3
src/sql/migrations/down/0000.sql
Normal file
3
src/sql/migrations/down/0000.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE `server` DROP `language`;
|
||||
|
||||
ALTER TABLE `profile` DROP `language`;
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue