diff --git a/freechat-client/.gitignore b/freechat-client/.gitignore index 486c811..f2ab023 100644 --- a/freechat-client/.gitignore +++ b/freechat-client/.gitignore @@ -1,4 +1,7 @@ node_modules/ target/ static/css/ -.sass-cache \ No newline at end of file +.sass-cache + +resources/js/ +resourcse/css/ \ No newline at end of file diff --git a/freechat-client/scripts/setup-js-css.sh b/freechat-client/scripts/setup-js-css.sh new file mode 100644 index 0000000..e51b1f3 --- /dev/null +++ b/freechat-client/scripts/setup-js-css.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +jsFolder="resources/js/" +cssFolder="resources/css/" +mkdir -p $jsFolder $cssFolder + +jquery='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js' +bootstrapBundle='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js' + +bootstrap='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' +faCss='https://use.fontawesome.com/releases/v5.8.2/css/all.css' + +for js in $jquery $bootstrapBundle;do + wget -O $jsFolder/`basename $js` $js +done + +for css in $bootstrap $faCss;do + wget -O $cssFolder/`basename $css` $js +done \ No newline at end of file diff --git a/freechat-client/scripts/setup.sh b/freechat-client/scripts/setup.sh deleted file mode 100644 index 2ad4010..0000000 --- a/freechat-client/scripts/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# Just setting up all things npm here -npm install -chmod 1755 node_modules/electron/dist/chrome-sandbox -sudo chown root node_modules/electron/dist/chrome-sandbox