Display version number underneath the logo
This commit is contained in:
1 parent
03c3c456eb
commit
134ca46dde
3 files changed
+24
-3
No files matched your search
+5
-1
@@ -307,7 +307,11 @@ async function generateFrontendJs(): Promise<void> {
|
||||
{
|
||||
name: "",
|
||||
resolveId: function (importee, importer) {
|
||||
if (importee.endsWith("/bigint")) {
|
||||
if (importee.endsWith("/package.json")) {
|
||||
const p = path.resolve(path.dirname(importer), importee);
|
||||
if (p === path.resolve(INPUT_DIR, "package.json"))
|
||||
return path.resolve(OUTPUT_DIR, "package.json");
|
||||
} else if (importee.endsWith("/bigint")) {
|
||||
return this.resolve(importee + "-jsbi", importer);
|
||||
} else if (importee === "espresso-iisojs") {
|
||||
return this.resolve(
|
||||
|
||||
+13
-1
@@ -285,11 +285,23 @@ body {
|
||||
}
|
||||
|
||||
& > .logo {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
& > img {
|
||||
margin: 10px;
|
||||
display: inline;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
& > .version {
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
right: 10px;
|
||||
font-family: monospace;
|
||||
font-size: 10px;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
& > .user-menu {
|
||||
float: right;
|
||||
margin: 5px;
|
||||
|
||||
+6
-1
@@ -23,6 +23,7 @@ import drawerComponent from "./drawer-component";
|
||||
import userMenu from "./user-menu";
|
||||
import adminMenu from "./admin-menu";
|
||||
import * as overlay from "./overlay";
|
||||
import { version as VERSION } from "../package.json";
|
||||
|
||||
const adminPages = [
|
||||
"presets",
|
||||
@@ -51,7 +52,11 @@ const component: ClosureComponent = (): Component => {
|
||||
|
||||
return [
|
||||
m("#header", [
|
||||
m("img.logo", { src: "logo.svg" }),
|
||||
m(
|
||||
"div.logo",
|
||||
m("img", { src: "logo.svg" }),
|
||||
m("span.version", "v" + VERSION)
|
||||
),
|
||||
m(userMenu),
|
||||
m(menu, attrs),
|
||||
m(drawerComponent),
|
||||
|
||||
Reference in new issue
Block a user