diff --git a/data/streaming.png b/data/streaming.png
deleted file mode 100644
index 02eafda..0000000
Binary files a/data/streaming.png and /dev/null differ
diff --git a/data/user.png b/data/user.png
deleted file mode 100644
index 1db461c..0000000
Binary files a/data/user.png and /dev/null differ
diff --git a/webui-src/app/home.js b/webui-src/app/home.js
index 952e143..188e1f0 100644
--- a/webui-src/app/home.js
+++ b/webui-src/app/home.js
@@ -7,7 +7,7 @@ const logo = () => {
view() {
return m('.logo', [
m('img', {
- src: '../data/retroshare.svg',
+ src: 'images/retroshare.svg',
alt: 'retroshare_icon',
}),
m('.retroshareText', [
diff --git a/webui-src/app/login.js b/webui-src/app/login.js
index 6251466..dd2d24a 100644
--- a/webui-src/app/login.js
+++ b/webui-src/app/login.js
@@ -39,7 +39,7 @@ function loginComponent() {
let withOptions = false;
const logo = () =>
- m('img.logo[width=30%]', { src: '../data/retroshare.svg', alt: 'retroshare_icon' });
+ m('img.logo[width=30%]', { src: 'images/retroshare.svg', alt: 'retroshare_icon' });
const inputName = () =>
m('input', {
diff --git a/webui-src/app/main.js b/webui-src/app/main.js
index 070551a..fba7d8c 100644
--- a/webui-src/app/main.js
+++ b/webui-src/app/main.js
@@ -37,7 +37,7 @@ const navbar = () => {
[
m('.nav-menu__logo', [
m('img', {
- src: '../data/retroshare.svg',
+ src: 'images/retroshare.svg',
alt: 'retroshare_icon',
}),
m('h5', 'Retroshare'),
diff --git a/data/retroshare.svg b/webui-src/assets/images/retroshare.svg
similarity index 100%
rename from data/retroshare.svg
rename to webui-src/assets/images/retroshare.svg
diff --git a/data/user.svg b/webui-src/assets/images/user.svg
similarity index 100%
rename from data/user.svg
rename to webui-src/assets/images/user.svg
diff --git a/webui-src/index.html b/webui-src/index.html
index 74d35c7..a232168 100644
--- a/webui-src/index.html
+++ b/webui-src/index.html
@@ -5,7 +5,7 @@
RetroShare
-
+
diff --git a/webui-src/make-src/build.bat b/webui-src/make-src/build.bat
index af06cd6..62f4e0e 100644
--- a/webui-src/make-src/build.bat
+++ b/webui-src/make-src/build.bat
@@ -42,9 +42,6 @@ popd
echo copying assets folder
xcopy /s %src%\assets\ %publicdest%
-echo copying data folder
-xcopy /s %src%\..\data %publicdest%\data\
-
echo "### WebUI build complete ###"
goto :EOF
diff --git a/webui-src/make-src/build.sh b/webui-src/make-src/build.sh
index 4b5dbf0..7b045c8 100755
--- a/webui-src/make-src/build.sh
+++ b/webui-src/make-src/build.sh
@@ -13,7 +13,6 @@ else
fi
if [ "$2" = "" ]; then
-
if [ -d "$publicdest" ]; then
echo removing existing $publicdest
rm $publicdest -R
@@ -30,7 +29,7 @@ shopt -s globstar
if [ "$2" = "" ]||[ "$2" = "index.html" ]; then
echo copying html file
- cp -r $src/index.html $publicdest/
+ cp -r $src/index.html $publicdest/
fi
if [ "$2" = "" ]||[ "$2" = "styles.css" ]; then
@@ -55,16 +54,8 @@ if [ "$2" = "" ]||[ "$2" = "app.js" ]; then
done
fi
-if [ "$2" = "" ]||[ "$2" = "../data" ]; then
- echo copying assets folder
- cp -r $src/assets/* $publicdest/
-fi
-
-if [ "$2" = "" ]||[ "$2" = "../data" ]; then # only for development to restore data folder
- echo copying data folder
- mkdir $publicdest/data
- cp -r $src/../data $publicdest/
-fi
+echo copying assets folder
+cp -r $src/assets/* $publicdest/
if [ "$2" != "" ]&&[ "$3" != "" ]; then
if [ ! -d "$3/webui" ]; then
diff --git a/webui.pro b/webui.pro
index 6890def..25c8f77 100644
--- a/webui.pro
+++ b/webui.pro
@@ -21,7 +21,7 @@ TEMPLATE = subdirs
SUBDIRS= # don't build anything
CONFIG -= qt
-WEBUI_SRC_HTML += $$PWD/webui-src/index.html
+WEBUI_SRC_HTML = $$PWD/webui-src/index.html
WEBUI_SRC_JS = $$PWD/webui-src/app/rswebui.js
WEBUI_SRC_JS += $$PWD/webui-src/app/mithril.js
@@ -29,9 +29,9 @@ WEBUI_SRC_JS += $$PWD/webui-src/app/login.js
WEBUI_SRC_JS += $$PWD/webui-src/app/main.js
WEBUI_SRC_JS += $$PWD/webui-src/app/home.js
-WEBUI_SRC_CSS += $$PWD/webui-src/styles.css
+WEBUI_SRC_CSS = $$PWD/webui-src/styles.css
-WEBUI_SRC_DATA += $$PWD/data/retroshare.svg
+WEBUI_SRC_IMAGE = $$PWD/data/retroshare.svg
win32-g++ {
isEmpty(QMAKE_SH) {
@@ -103,9 +103,8 @@ win32-g++ {
webui/styles.css \
webui/app.js
- webui_data_files.path = "$${RS_DATA_DIR}/webui/data/"
- webui_data_files.files = webui/data/retroshare.svg \
- webui/data/streaming.png
+ webui_image_files.path = "$${RS_DATA_DIR}/webui/images/"
+ webui_image_files.files = webui/images/retroshare.svg
webui_font_files.path = "$${RS_DATA_DIR}/webui/webfonts/"
webui_font_files.files = webui/webfonts/fa-solid-900.eot \
@@ -114,5 +113,5 @@ win32-g++ {
webui/webfonts/fa-solid-900.woff \
webui/webfonts/fa-solid-900.woff2
- INSTALLS += webui_base_files webui_font_files webui_data_files
+ INSTALLS += webui_base_files webui_font_files webui_image_files
}