mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
webui: switch from react to mithril
This commit is contained in:
parent
cef07fff91
commit
30193fe79a
26 changed files with 49 additions and 40216 deletions
|
@ -1,28 +1,31 @@
|
|||
#!/usr/bin/sh
|
||||
echo $1
|
||||
|
||||
# create webfiles from sources at compile time (works without npm/node.js)
|
||||
|
||||
if [ "$1" == "" ];then
|
||||
publicdest=../public-gen
|
||||
publicdest=../../webui
|
||||
src=..
|
||||
else
|
||||
publicdest=$1/public-gen
|
||||
src=$1
|
||||
publicdest=$1/webui
|
||||
src=$1/webui-src
|
||||
fi
|
||||
echo $publicdest
|
||||
|
||||
if [ -d "$publicdest" ]; then
|
||||
echo remove $publicdest
|
||||
echo remove existing $publicdest
|
||||
rm $publicdest -R
|
||||
fi
|
||||
|
||||
echo mkdir $publicdest
|
||||
mkdir $publicdest
|
||||
|
||||
echo copy template.js ...
|
||||
echo building app.js
|
||||
echo - copy template.js ...
|
||||
cp $src/make-src/template.js $publicdest/app.js
|
||||
|
||||
for filename in $src/app/*.js; do
|
||||
fname=$(basename "$filename")
|
||||
fname="${fname%.*}"
|
||||
echo adding $fname ...
|
||||
echo - adding $fname ...
|
||||
echo require.register\(\"$fname\", function\(exports, require, module\) { >> $publicdest/app.js
|
||||
cat $filename >> $publicdest/app.js
|
||||
echo >> $publicdest/app.js
|
||||
|
|
22
libresapi/src/webui-src/make-src/init.sh
Executable file
22
libresapi/src/webui-src/make-src/init.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
# create dummy webfiles at qmake run
|
||||
|
||||
if [ "$1" == "" ];then
|
||||
publicdest=../../webui
|
||||
else
|
||||
publicdest=$1/webui
|
||||
fi
|
||||
|
||||
if [ -d "$publicdest" ]; then
|
||||
echo remove $publicdest
|
||||
rm $publicdest -R
|
||||
fi
|
||||
|
||||
echo create $publicdest
|
||||
mkdir $publicdest
|
||||
|
||||
echo touch $publicdest/app.js, $publicdest/app.css, $publicdest/index.html
|
||||
touch $publicdest/app.js
|
||||
touch $publicdest/app.css
|
||||
touch $publicdest/index.html
|
7
libresapi/src/webui-src/make-src/readme.md
Normal file
7
libresapi/src/webui-src/make-src/readme.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
this folder contains files needed to create webfiles at compile-time and qmake
|
||||
|
||||
* init.sh creates dummy files at qmake
|
||||
* build.sh creates files at compile time
|
||||
* chat.css compiled version of _chat.sass (.sass should replaced by .scss)
|
||||
* main.css simple template extracted from main.sass
|
||||
* template.js start of compiled app.js, containing additional created content
|
Loading…
Add table
Add a link
Reference in a new issue