Fix changes

This commit is contained in:
koalasat 2024-09-17 16:35:43 +02:00
parent bfda0e93be
commit 87e5712262
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
4 changed files with 20 additions and 19 deletions

13
.gitignore vendored
View File

@ -634,6 +634,7 @@ frontend/static/assets/avatars*
api/lightning/*_grpc.py
api/lightning/*_pb2.py
api/lightning/pymp*
api/lightning/pip*
frontend/static/locales/collected_phrases.json
frontend/static/admin*
frontend/static/rest_framework*
@ -648,15 +649,15 @@ node
# frontend statics
mobile/html/Web.bundle/static/*
# mobile/html/Web.bundle/index.html
mobile/html/Web.bundle/index.html
desktopApp/static/*
# desktopApp/index.html
desktopApp/index.html
web/static/*
# web/basic.html
# web/pro.html
web/basic.html
web/pro.html
nodeapp/static/*
# nodeapp/basic.html
# nodeapp/pro.html
nodeapp/basic.html
nodeapp/pro.html
# Protocol Buffers
api/lightning/*.proto

View File

@ -4,8 +4,8 @@ import SelfhostedAlert from './SelfhostedAlert';
import UnsafeAlert from './UnsafeAlert';
const HostAlert = (): JSX.Element => {
const { settings } = useContext<UseAppStoreType>(AppContext);
const component = settings.selfhostedClient ? SelfhostedAlert : UnsafeAlert;
const { client } = useContext<UseAppStoreType>(AppContext);
const component = client === 'selfhosted' || client === 'desktop' ? SelfhostedAlert : UnsafeAlert;
return component();
};

View File

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="/static/assets/images/favicon-96x96.png" />
<link rel="icon" type="image/png" href="/static/assets/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/static/assets/images/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/static/assets/images/favicon-192x192.png" sizes="192x192">
<link rel="shortcut icon" href="./static/assets/images/favicon-96x96.png" />
<link rel="icon" type="image/png" href="./static/assets/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="./static/assets/images/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="./static/assets/images/favicon-192x192.png" sizes="192x192">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@ -12,10 +12,10 @@
<title>RoboSats - Simple and Private Bitcoin Exchange</title>
<link rel="stylesheet" href="/static/css/fonts.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/loader.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/leaflet.css"/>
<link rel="stylesheet" href="./static/css/fonts.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/loader.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/index.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/leaflet.css"/>
</head>
<body>
<noscript>

View File

@ -32,7 +32,7 @@ const configNode: Configuration = {
path: path.resolve(__dirname, 'static/frontend'),
filename: `main.v${version}.[contenthash].js`,
clean: true,
publicPath: '/static/frontend/',
publicPath: './static/frontend/',
},
plugins: [
new HtmlWebpackPlugin({
@ -84,7 +84,7 @@ const configDesktop: Configuration = {
path: path.resolve(__dirname, '../desktopApp/static/frontend'),
filename: `main.v${version}.[contenthash].js`,
clean: true,
publicPath: '/static/frontend/',
publicPath: './static/frontend/',
},
plugins: [
new HtmlWebpackPlugin({
@ -171,7 +171,7 @@ const configMobile: Configuration = {
path: path.resolve(__dirname, '../mobile/html/Web.bundle/static/frontend'),
filename: `main.v${version}.[contenthash].js`,
clean: true,
publicPath: '/static/frontend/',
publicPath: './static/frontend/',
},
};