From 2ecb98a842e120d0e13884517b57e3c2bb74a8b0 Mon Sep 17 00:00:00 2001 From: uf0 Date: Sun, 8 Nov 2020 15:52:40 +0100 Subject: [PATCH] bootstrap --- .gitignore | 6 + .prettierrc | 6 + README.md | 64 ++++++++ package.json | 24 +++ public/favicon.png | Bin 0 -> 3127 bytes public/global.css | 10 ++ public/index.html | 17 ++ src/App.svelte | 104 ++++++++++++ src/components/Chat.svelte | 19 +++ src/components/Description.svx | 13 ++ src/components/Nav.svelte | 57 +++++++ src/components/Offline.svelte | 263 ++++++++++++++++++++++++++++++ src/components/VideoPlayer.svelte | 42 +++++ src/main.js | 9 + src/stores.js | 15 ++ webpack.config.js | 57 +++++++ 16 files changed, 706 insertions(+) create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 README.md create mode 100644 package.json create mode 100644 public/favicon.png create mode 100644 public/global.css create mode 100644 public/index.html create mode 100644 src/App.svelte create mode 100644 src/components/Chat.svelte create mode 100644 src/components/Description.svx create mode 100644 src/components/Nav.svelte create mode 100644 src/components/Offline.svelte create mode 100644 src/components/VideoPlayer.svelte create mode 100644 src/main.js create mode 100644 src/stores.js create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f60de0b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +node_modules +public/bundle.* +package-lock.json +yarn.lock +.vscode \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0181079 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{"svelteSortOrder" : "styles-scripts-markup", +"svelteStrictMode": true, +"svelteBracketNewLine": true, +"svelteAllowShorthand": false, +"svelteIndentScriptAndStyle": false +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3759c80 --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +# svelte app + +This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template-webpack. + +To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit): + +```bash +npx degit sveltejs/template-webpack svelte-app +cd svelte-app +``` + +*Note that you will need to have [Node.js](https://nodejs.org) installed.* + + +## Get started + +Install the dependencies... + +```bash +cd svelte-app +npm install +``` + +...then start webpack: + +```bash +npm run dev +``` + +Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and the page should reload with your changes. + + +## Deploying to the web + +### With [now](https://zeit.co/now) + +Install `now` if you haven't already: + +```bash +npm install -g now +``` + +Then, from within your project folder: + +```bash +now +``` + +As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon. + +### With [surge](https://surge.sh/) + +Install `surge` if you haven't already: + +```bash +npm install -g surge +``` + +Then, from within your project folder: + +```bash +npm run build +surge public +``` diff --git a/package.json b/package.json new file mode 100644 index 0000000..97c6488 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "svelte-app", + "version": "1.0.0", + "devDependencies": { + "cross-env": "^5.2.0", + "css-loader": "^2.1.1", + "mdsvex": "^0.8.8", + "mini-css-extract-plugin": "^0.6.0", + "serve": "^11.0.0", + "style-loader": "^0.23.1", + "svelte": "^3.0.0", + "svelte-loader": "2.13.3", + "webpack": "^4.30.0", + "webpack-cli": "^3.3.0", + "webpack-dev-server": "^3.3.1" + }, + "scripts": { + "build": "cross-env NODE_ENV=production webpack", + "dev": "webpack-dev-server --content-base public" + }, + "dependencies": { + "@vime/svelte": "4.2.0" + } +} diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..7e6f5eb5a2f1f1c882d265cf479de25caa925645 GIT binary patch literal 3127 zcmV-749N3|P)i z7)}s4L53SJCkR}iVi00SFk;`MXX*#X*kkwKs@nFGS}c;=?XFjU|G$3t^5sjIVS2G+ zw)WGF83CpoGXhLGW(1gW%uV|X7>1P6VhCX=Ux)Lb!*DZ%@I3!{Gsf7d?gtIQ%nQiK z3%(LUSkBji;C5Rfgd6$VsF@H`P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x|5!%M2Fb2dU zW3~MwwpEH9Rhue+k$UIOoo($Ds!NbOyMR36fRHu;*15(YcA7siIZk#%JWz>P!qX1?IUojG&nKR>^gArBt2 zit(ETyZ=@V&7mv_Fi4bABcnwP+jzQuHcfU&BrAV91u-rFvEi7y-KnWsvHH=d2 zgAk(GKm_S8RcTJ>2N3~&Hbwp{Z3NF_Xeh}g4Eke)V&dY{W(3&b1j9t4yK_aYJisZZ{1rcU5- z;eD>K;ndPq&B-8yA_S0F!4ThA&{1{x)H<#?k9a#6Pc6L?V^s0``ynL&D;p(!Nmx`Y zFkHex{4p!Ggm^@DlehW}iHHVi}~u=$&N? z(NEBLQ#UxxAkdW>X9LnqUr#t4Lu0=9L8&o>JsqTtT5|%gb3QA~hr0pED71+iFFr)dZ=Q=E6ng{NE{Z~0)C?deO#?Aj zSDQ$z#TeC2T^|=}6GBo-&$;E{HL3!q3Z-szuf)O=G#zDjin4SSP%o%6+2IT#sLjQa ziyxFFz~LMjWY+_a5H!U6%a<=b7QVP^ z*90a62;bVq{?@)P6^DWd^Yilq4|YTV2Nw!Yu;a1lPI-sxR)rf@Fe5DhDP7FH zZZ%4S*1C30P;|O+jB!1;m|rXT90Sm5*RBbQN`PKu+hDD*S^yE(CdtSfg=z>u$cIj> z + + + + + + Off Topic live + + + + + + + + + + \ No newline at end of file diff --git a/src/App.svelte b/src/App.svelte new file mode 100644 index 0000000..8374578 --- /dev/null +++ b/src/App.svelte @@ -0,0 +1,104 @@ + + + + +