2023-06-16 08:06:38 +00:00
|
|
|
import {Component} from "preact";
|
|
|
|
import browser from "webextension-polyfill";
|
|
|
|
|
|
|
|
export class PageFooter extends Component {
|
|
|
|
render() {
|
|
|
|
const manifest = browser.runtime.getManifest();
|
|
|
|
|
|
|
|
const copyright = (
|
|
|
|
<p>
|
|
|
|
©{" "}
|
|
|
|
<a
|
|
|
|
target="_blank"
|
2023-07-23 09:59:33 +00:00
|
|
|
href="https://gitlab.com/tildes-community/tildes-shepherd/-/blob/main/LICENSE"
|
2023-06-16 08:06:38 +00:00
|
|
|
>
|
|
|
|
AGPL-3.0-or-later
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
);
|
|
|
|
|
|
|
|
const messageCommunity = (
|
|
|
|
<a target="_blank" href="https://tildes.net/user/Community/new_message">
|
|
|
|
Message @Community
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
|
|
|
|
const version = (
|
|
|
|
<a
|
|
|
|
target="_blank"
|
2023-07-23 09:59:33 +00:00
|
|
|
href={`https://gitlab.com/tildes-community/tildes-shepherd/-/releases/${manifest.version}`}
|
2023-06-16 08:06:38 +00:00
|
|
|
>
|
|
|
|
v{manifest.version}
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<footer class="page-footer">
|
|
|
|
{messageCommunity} / {version} / {copyright}
|
|
|
|
</footer>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|