Collection of themes/skins for the Fossil SCM

⌈⌋ branch:  Fossil Skins Extra


Check-in [7573908dd3]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:standardize PMD type: further
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7573908dd3f30fd914e04ed5dd755069029e19e5
User & Date: mario 2021-10-24 06:20:10
Context
2021-10-24
22:14
Add +hea:der, multi-url, FOSSIL_REPOSITORY= env support. Change more github-URLs to fossil/json api. check-in: 0b03fda8d7 user: mario tags: trunk
06:20
standardize PMD type: further check-in: 7573908dd3 user: mario tags: trunk
06:19
tag wiki pages (on initial artifactt) check-in: fe53bd85f9 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to extroot/auth.

1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: form
# category: auth
# title: IndieAuth authorization_endpoint
# description: Verifies a remote user id (URL) against active fossil login
# version: 0.6
# state: beta
# depends: php:curl, php:sqlite
# doc: https://www.w3.org/TR/indieauth/#authentication,




|







1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: output
# category: auth
# title: IndieAuth authorization_endpoint
# description: Verifies a remote user id (URL) against active fossil login
# version: 0.6
# state: beta
# depends: php:curl, php:sqlite
# doc: https://www.w3.org/TR/indieauth/#authentication,

Changes to extroot/crashreport.

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: api
# category: tickets
# title: Crashreport
# description: Receives errors (JSON POST) and files them as tickets
# version: 0.1
# state: alpha
# config: -
# access: public
#




|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: store
# category: ticket
# title: Crashreport
# description: Receives errors (JSON POST) and files them as tickets
# version: 0.1
# state: alpha
# config: -
# access: public
#

Changes to extroot/index.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: display
# category: list
# title: Ext/ index
# description: Lists all CGI extensions in the extroot: folder
# version: 0.3
# state: stable
# config: -
# access: public
#
# Just a glob() and some crude plugin meta extraction.
#

include("./fossil_common.php");
error_reporting(0);

#-- fossil HTML output
function page_md($text) {
    header("Content-Type: text/html; charset=utf-8");
    print <<<EOF
<div class='fossil-doc' data-title='Extensions'>
<style>
 .extensions-index {
    columns: 2;
 }
 .fsl-ext {
    width: 100%;
    display: inline-block;




|


















|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: output
# category: list
# title: Ext/ index
# description: Lists all CGI extensions in the extroot: folder
# version: 0.3
# state: stable
# config: -
# access: public
#
# Just a glob() and some crude plugin meta extraction.
#

include("./fossil_common.php");
error_reporting(0);

#-- fossil HTML output
function page_md($text) {
    header("Content-Type: text/html; charset=utf-8");
    print <<<EOF
<div class="fossil-doc" data-title='Extensions'>
<style>
 .extensions-index {
    columns: 2;
 }
 .fsl-ext {
    width: 100%;
    display: inline-block;
94
95
96
97
98
99
100

101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
page_md("<div class=extensions-index>\n");
$map_access = ["public"=>"🔎", "private"=>"🕵", "admin"=>"🔑", "auth"=>"💁"];
foreach (ls(__DIR__) as $fn) {
    $meta = meta($fn);
    $h = "h";
    $title = $meta["title"] ?: $fn;
    $version = $meta["version"] ?: "-";

    $desc = $meta["description"] ?: $fn;
    $type = $meta["type"] ?: "extension";
    $cat = $meta["category"] ?: "-";
    $access = "";
    if (!empty($meta["access"])) {
        $access = "<span class=access title='$meta[access]'>" . ($map_access[$meta["access"]] ?: "🔒") . "</span>";
    }
    print <<<EOF

    <div class="fsl-ext $cat" title="{$h($meta['__doc__'], ENT_QUOTES)}">
        <a href="$_SERVER[FOSSIL_URI]/ext/$fn">$title</a>
        <span class=version>$version</span> $access
        <span class=right>
          <div class=type>$type</div>
          <div class=category>$cat</div>
        </span>
        <div class=description>{$h($desc)}</div>
    </div>

EOF;
}
    print "</div>";

?>







>











|












94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
page_md("<div class=extensions-index>\n");
$map_access = ["public"=>"🔎", "private"=>"🕵", "admin"=>"🔑", "auth"=>"💁"];
foreach (ls(__DIR__) as $fn) {
    $meta = meta($fn);
    $h = "h";
    $title = $meta["title"] ?: $fn;
    $version = $meta["version"] ?: "-";
    $state = $meta["state"] ?: "-";
    $desc = $meta["description"] ?: $fn;
    $type = $meta["type"] ?: "extension";
    $cat = $meta["category"] ?: "-";
    $access = "";
    if (!empty($meta["access"])) {
        $access = "<span class=access title='$meta[access]'>" . ($map_access[$meta["access"]] ?: "🔒") . "</span>";
    }
    print <<<EOF

    <div class="fsl-ext $cat" title="{$h($meta['__doc__'], ENT_QUOTES)}">
        <a href="$_SERVER[FOSSIL_URI]/ext/$fn">$title</a>
        <span class=version title="$state">$version</span> $access
        <span class=right>
          <div class=type>$type</div>
          <div class=category>$cat</div>
        </span>
        <div class=description>{$h($desc)}</div>
    </div>

EOF;
}
    print "</div>";

?>

Changes to extroot/micropub.

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: json
# category: api
# title: MicroPub API
# description: Accepts blog/ticket/chat entries from micropub clients
# version: 0.2
# state: incomplete
# depends: php:sqlite
# doc: https://micropub.spec.indieweb.org/#add,
#     https://github.com/indieweb/micropub-extensions/issues




|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: store
# category: wiki
# title: MicroPub API
# description: Accepts blog/ticket/chat entries from micropub clients
# version: 0.2
# state: incomplete
# depends: php:sqlite
# doc: https://micropub.spec.indieweb.org/#add,
#     https://github.com/indieweb/micropub-extensions/issues

Changes to extroot/sqliteadmin.

1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# api: cgi
# type: form
# category: database
# title: SQLiteAdmin
# description: PHP-based admin tool to manage SQLite2 and SQLite3 databases
# version: 1.9.9-dev
# license: GNU-GPL-v3+
# url: https://www.phpliteadmin.org/
# access: admin



|







1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# api: cgi
# type: store
# category: database
# title: SQLiteAdmin
# description: PHP-based admin tool to manage SQLite2 and SQLite3 databases
# version: 1.9.9-dev
# license: GNU-GPL-v3+
# url: https://www.phpliteadmin.org/
# access: admin

Changes to extroot/survey_sum.

1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: display
# category: database
# title: Survey summarize
# description: Only collects numeric entries for approximate stats
# version: 0.2
# state: alpha
# config: -
# access: public




|







1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: output
# category: database
# title: Survey summarize
# description: Only collects numeric entries for approximate stats
# version: 0.2
# state: alpha
# config: -
# access: public

Changes to extroot/token.

1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: json
# category: auth
# title: IndieAuth token endpoint
# description: Turns an auth token into an access token (but not really)
# version: 0.2
# state: untested
# depends: php:sqlite
# doc: https://indieweb.org/obtaining-an-access-token




|







1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: store
# category: auth
# title: IndieAuth token endpoint
# description: Turns an auth token into an access token (but not really)
# version: 0.2
# state: untested
# depends: php:sqlite
# doc: https://indieweb.org/obtaining-an-access-token

Changes to extroot/trees.

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: output
# category: api
# title: trees API
# description: Simulate GitHub directory listing response
# version: 0.1
# state: beta
# depends: php:sqlite
# config: -
# access: public





|







1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/php-cgi -dcgi.force_redirect=0
<?php
# encoding: utf-8
# api: cgi
# type: output
# category: github
# title: trees API
# description: Simulate GitHub directory listing response
# version: 0.1
# state: beta
# depends: php:sqlite
# config: -
# access: public