fuma 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ px prisma init --datasource-provider mysql
|
|
|
25
25
|
mkdir -p ./src/lib/server
|
|
26
26
|
source="https://raw.githubusercontent.com/peufo/fuma/main"
|
|
27
27
|
curl "$source/prisma/schema.prisma" -o ./prisma/schema.prisma
|
|
28
|
-
curl "$source/src/lib/
|
|
28
|
+
curl "$source/src/lib/private/prisma.ts" -o ./src/lib/server/prisma.ts
|
|
29
29
|
|
|
30
30
|
echo "DATABASE_URL=\"mysql://$mysql_username@localhost:3306/$project_name\"" > .env
|
|
31
31
|
cp .env .env.example
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import { Icon } from '../icon/index.js'
|
|
6
6
|
import { mdiWeatherNight, mdiWhiteBalanceSunny } from '@mdi/js'
|
|
7
7
|
|
|
8
|
+
let klass = ''
|
|
9
|
+
export { klass as class }
|
|
10
|
+
|
|
8
11
|
mode.subscribe((_mode) => {
|
|
9
12
|
if (!browser) return
|
|
10
13
|
const [html] = document.getElementsByTagName('html')
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
<ModeWatcher />
|
|
19
22
|
|
|
20
23
|
<slot {toggleMode} {path}>
|
|
21
|
-
<button class="btn btn-square btn-sm" on:click={toggleMode}>
|
|
24
|
+
<button class="btn btn-square btn-sm {klass}" on:click={toggleMode}>
|
|
22
25
|
<Icon {path} />
|
|
23
26
|
</button>
|
|
24
27
|
</slot>
|