adding new favicon and square logo, updating build scripts (#819)
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
252
artwork/logo-square.svg
Normal file
After Width: | Height: | Size: 798 KiB |
|
@ -162,6 +162,7 @@ async fn index_view(_req: tide::Request<AppState>) -> tide::Result {
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
<title>Kanidm</title>
|
<title>Kanidm</title>
|
||||||
<link rel="stylesheet" href="/pkg/external/bootstrap.min.css" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"/>
|
<link rel="stylesheet" href="/pkg/external/bootstrap.min.css" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"/>
|
||||||
<link rel="stylesheet" href="/pkg/style.css"/>
|
<link rel="stylesheet" href="/pkg/style.css"/>
|
||||||
|
@ -170,7 +171,7 @@ async fn index_view(_req: tide::Request<AppState>) -> tide::Result {
|
||||||
<script type="module" type="text/javascript" src="/pkg/wasmloader.js" integrity="sha384-==WASMHASH==">
|
<script type="module" type="text/javascript" src="/pkg/wasmloader.js" integrity="sha384-==WASMHASH==">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="icon" href="/pkg/favicon.svg" />
|
<link rel="icon" href="/pkg/img/favicon.png" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
wasm-pack build --dev --target web && \
|
wasm-pack build --dev --target web || exit 1
|
||||||
touch ./pkg/ANYTHING_HERE_WILL_BE_DELETED_ADD_TO_SRC && \
|
|
||||||
|
touch ./pkg/ANYTHING_HERE_WILL_BE_DELETED_ADD_TO_SRC && \
|
||||||
|
cp -R ./src/img ./pkg/ && \
|
||||||
cp ./src/style.css ./pkg/style.css && \
|
cp ./src/style.css ./pkg/style.css && \
|
||||||
cp ./src/wasmloader.js ./pkg/wasmloader.js && \
|
cp ./src/wasmloader.js ./pkg/wasmloader.js && \
|
||||||
cp ./src/favicon.svg ./pkg/favicon.svg && \
|
|
||||||
cp -a ./src/external ./pkg/external && \
|
cp -a ./src/external ./pkg/external && \
|
||||||
rm ./pkg/.gitignore
|
rm ./pkg/.gitignore
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
wasm-pack build --release --target web && \
|
wasm-pack build --release --target web || exit 1
|
||||||
touch ./pkg/ANYTHING_HERE_WILL_BE_DELETED_ADD_TO_SRC && \
|
|
||||||
|
touch ./pkg/ANYTHING_HERE_WILL_BE_DELETED_ADD_TO_SRC && \
|
||||||
|
cp -R ./src/img ./pkg/ &&
|
||||||
cp ./src/style.css ./pkg/style.css && \
|
cp ./src/style.css ./pkg/style.css && \
|
||||||
cp ./src/wasmloader.js ./pkg/wasmloader.js && \
|
cp ./src/wasmloader.js ./pkg/wasmloader.js && \
|
||||||
cp ./src/favicon.svg ./pkg/favicon.svg && \
|
|
||||||
cp -a ./src/external ./pkg/external && \
|
|
||||||
rm ./pkg/.gitignore
|
rm ./pkg/.gitignore
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
kanidmd_web_ui/pkg/img/favicon.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
253
kanidmd_web_ui/pkg/img/logo-square.svg
Normal file
After Width: | Height: | Size: 798 KiB |
|
@ -370,9 +370,6 @@ async function init(input) {
|
||||||
}
|
}
|
||||||
const imports = {};
|
const imports = {};
|
||||||
imports.wbg = {};
|
imports.wbg = {};
|
||||||
imports.wbg.__wbg_modalhide_673016763df325bd = function() { return logError(function (arg0, arg1) {
|
|
||||||
modal_hide(getStringFromWasm0(arg0, arg1));
|
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
||||||
const obj = getObject(arg1);
|
const obj = getObject(arg1);
|
||||||
const ret = JSON.stringify(obj === undefined ? null : obj);
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
||||||
|
@ -381,6 +378,9 @@ async function init(input) {
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_modalhide_673016763df325bd = function() { return logError(function (arg0, arg1) {
|
||||||
|
modal_hide(getStringFromWasm0(arg0, arg1));
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
||||||
const ret = getStringFromWasm0(arg0, arg1);
|
const ret = getStringFromWasm0(arg0, arg1);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
|
@ -869,16 +869,16 @@ async function init(input) {
|
||||||
const ret = wasm.memory;
|
const ret = wasm.memory;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper19763 = function() { return logError(function (arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper19774 = function() { return logError(function (arg0, arg1, arg2) {
|
||||||
const ret = makeClosure(arg0, arg1, 1252, __wbg_adapter_30);
|
const ret = makeClosure(arg0, arg1, 1253, __wbg_adapter_30);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbindgen_closure_wrapper21944 = function() { return logError(function (arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper21955 = function() { return logError(function (arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 1272, __wbg_adapter_33);
|
const ret = makeMutClosure(arg0, arg1, 1273, __wbg_adapter_33);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbindgen_closure_wrapper22383 = function() { return logError(function (arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper22397 = function() { return logError(function (arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 1299, __wbg_adapter_36);
|
const ret = makeMutClosure(arg0, arg1, 1300, __wbg_adapter_36);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
|
||||||
|
|
|
@ -154,3 +154,8 @@ body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kanidm_logo {
|
||||||
|
|
||||||
|
width: 12.0em;
|
||||||
|
height: 12.0em;
|
||||||
|
}
|
BIN
kanidmd_web_ui/src/img/favicon.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
253
kanidmd_web_ui/src/img/logo-square.svg
Normal file
After Width: | Height: | Size: 798 KiB |
|
@ -772,7 +772,10 @@ impl Component for LoginApp {
|
||||||
html! {
|
html! {
|
||||||
<main class="form-signin">
|
<main class="form-signin">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>{ "Kanidm Alpha 🦀" }</h2>
|
<center>
|
||||||
|
<img src="/pkg/img/logo-square.svg" alt="Kanidm" class="kanidm_logo"/>
|
||||||
|
<h2>{ "Kanidm Alpha" } </h2>
|
||||||
|
</center>
|
||||||
</div>
|
</div>
|
||||||
{ self.view_state(ctx) }
|
{ self.view_state(ctx) }
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -154,3 +154,8 @@ body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kanidm_logo {
|
||||||
|
|
||||||
|
width: 12.0em;
|
||||||
|
height: 12.0em;
|
||||||
|
}
|