This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script >
2+ import {onMount } from ' svelte' ;
3+ import yaml from ' js-yaml' ;
4+ // import * as api from './api';
5+ // import {app} from '../src2/$app';
6+ // import Panel from '~src/components/Panel.svelte';
7+ import Loading from ' ~components/Loading.svelte' ;
8+
9+ onMount (async _ => {
10+ console .log (' did' );
11+ // $app.loading = true;
12+ // // Just waiting
13+ // await new Promise(resolve => setTimeout(resolve, 1000));
14+ // // Now fetching
15+ // const themesYml = await api.get('themes.yml');
16+ // const allThemes = yaml.load(themesYml);
17+ // const themes = [
18+ // ...allThemes.material,
19+ // ...allThemes.other,
20+ // ];
21+ //
22+ // // Load themes
23+ // $app.loadThemes(themes);
24+ // // Get settings from local storage
25+ // await $app.fetchSettings();
26+ // // Add defaults
27+ // $app.loadDefaults();
28+ //
29+ // $app.loading = false;
30+ });
31+ </script >
32+
33+ <style >
34+ .main {
35+ width : 100vw ;
36+ height : 100vh ;
37+ position : relative ;
38+ display : flex ;
39+ flex-direction : column ;
40+ justify-content : flex-start ;
41+ align-items : center ;
42+ }
43+ </style >
44+
45+
46+ <main class =' main' >
47+ <Loading ></Loading >
48+ <!-- {#if !$app.loading}-->
49+ <!-- <Panel></Panel>-->
50+ <!-- {/if}-->
51+ </main >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- export let count = 0 ;
3- let action: string = null ;
4- function increment() {
5- count += 1 ;
6- action = " increment" ;
7- }
8- function decrement() {
9- count -= 1 ;
10- action = " decrement" ;
11- }
2+ import App from ' ~App.svelte' ;
123 </script >
134
14- <style >
15- .container {
16- min-width : 470px ;
17- display : flex ;
18- align-items : center ;
19- justify-content : center ;
20- gap : 47px ;
21- }
22- .action {
23- color : #470 ;
24- font-weight : bold ;
25- }
26- .text-center {
27- text-align : center ;
5+ <style lang =' scss' >
6+ :global {
7+ body {
8+ margin : 0 ;
9+ padding : 0 ;
10+ min-width : 1024px ;
11+ min-height : 800px ;
12+ background : var (--bg , #263238 );
13+ }
2814 }
2915 </style >
3016
31- <div >
32- <h2 class =" text-center" >
33- Welcome to your <a href =" https://www.plasmo.com" target =" _blank" >Plasmo</a > Extension!
34- </h2 >
35- <div class =" container" >
36- <button on:click ={decrement }>-</button >
37- <p >Current count: <b >{count }</b ></p >
38- <button on:click ={increment }>+</button >
39- </div >
40- {#if action }<p class ="action text-center" >{action }</p >{/if }
41- </div >
17+ <App />
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- const sveltePreprocess = require ( 'svelte-preprocess' ) ;
1+ import sveltePreprocess from 'svelte-preprocess' ;
22
3- module . exports = {
3+ export default {
44 // Consult https://github.com/sveltejs/svelte-preprocess
55 // for more information about preprocessors
66 preprocess : sveltePreprocess ( ) ,
Original file line number Diff line number Diff line change 1111 ],
1212 "compilerOptions" : {
1313 "paths" : {
14- "~*" : [
15- " ./*"
16- ]
14+ "~*" : [" src/*" ]
1715 },
1816 "baseUrl" : " ."
1917 }
You can’t perform that action at this time.
0 commit comments