Skip to content

Commit d069152

Browse files
committed
Update Evolu instance names and Vue example formatting
Changed Evolu instance 'name' values to 'evolu-minimal-example-181125' across all examples for consistency.
1 parent 31a57c8 commit d069152

6 files changed

Lines changed: 23 additions & 15 deletions

File tree

apps/web/src/components/EvoluFullExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const Schema = {
9797
};
9898

9999
const evolu = createEvolu(evoluReactWebDeps)(Schema, {
100-
name: SimpleName.orThrow("evolu-full-example-281025"),
100+
name: SimpleName.orThrow("evolu-full-example-181125"),
101101

102102
reloadUrl: "/playgrounds/full",
103103

apps/web/src/components/EvoluMinimalExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Schema = {
2626

2727
// Create Evolu instance for the React web platform.
2828
const evolu = Evolu.createEvolu(evoluReactWebDeps)(Schema, {
29-
name: Evolu.SimpleName.orThrow("evolu-minimal-example-281025"),
29+
name: Evolu.SimpleName.orThrow("evolu-minimal-example-181125"),
3030

3131
reloadUrl: "/playgrounds/minimal",
3232

examples/react-electron/components/EvoluMinimalExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Schema = {
2424

2525
// Create Evolu instance for the React web platform.
2626
const evolu = Evolu.createEvolu(evoluReactWebDeps)(Schema, {
27-
name: Evolu.SimpleName.orThrow("evolu-minimal-example-281025"),
27+
name: Evolu.SimpleName.orThrow("evolu-minimal-example-181125"),
2828

2929
reloadUrl: "/playgrounds/minimal",
3030

examples/react-nextjs/components/EvoluMinimalExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Schema = {
2626

2727
// Create Evolu instance for the React web platform.
2828
const evolu = Evolu.createEvolu(evoluReactWebDeps)(Schema, {
29-
name: Evolu.SimpleName.orThrow("evolu-minimal-example-281025"),
29+
name: Evolu.SimpleName.orThrow("evolu-minimal-example-181125"),
3030

3131
reloadUrl: "/playgrounds/minimal",
3232

examples/svelte-vite-pwa/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
// Create Evolu instance for the Svelte platform.
2323
const evolu = Evolu.createEvolu(evoluSvelteDeps)(Schema, {
24-
name: Evolu.SimpleName.orThrow("evolu-minimal-example-281025"),
24+
name: Evolu.SimpleName.orThrow("evolu-minimal-example-181125"),
2525
2626
reloadUrl: "/",
2727

examples/vue-vite-pwa/src/App.vue

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type DatabaseSchema = typeof DatabaseSchema;
5757
5858
const evolu = createEvolu(evoluWebDeps)(DatabaseSchema, {
5959
reloadUrl: "/",
60-
name: getOrThrow(SimpleName.from("evolu-vue-example")),
60+
name: SimpleName.orThrow("evolu-minimal-example-181125"),
6161
...(isDev && {
6262
transports: [{ type: "WebSocket", url: "ws://localhost:4000" }],
6363
}),
@@ -70,13 +70,13 @@ const evolu = createEvolu(evoluWebDeps)(DatabaseSchema, {
7070
provideEvolu(evolu);
7171
7272
const todosWithCategories = evolu.createQuery((db) =>
73-
db
74-
.selectFrom("todo")
75-
.select(["id", "title", "isCompleted", "categoryId", "priority"])
76-
.where("isDeleted", "is not", 1)
77-
.where("title", "is not", null)
78-
.$narrowType<{ title: kysely.NotNull }>()
79-
.orderBy("createdAt"),
73+
db
74+
.selectFrom("todo")
75+
.select(["id", "title", "isCompleted", "categoryId", "priority"])
76+
.where("isDeleted", "is not", 1)
77+
.where("title", "is not", null)
78+
.$narrowType<{ title: kysely.NotNull }>()
79+
.orderBy("createdAt"),
8080
);
8181
8282
const todoCategories = evolu.createQuery((db) =>
@@ -227,7 +227,11 @@ function onPriorityChange(event: Event, id: TodoId) {
227227
:value="todo.categoryId"
228228
@change="onCategoryChange($event, todo.id)"
229229
>
230-
<option v-for="category in allCategories" :value="category.id" :key="category.id">
230+
<option
231+
v-for="category in allCategories"
232+
:value="category.id"
233+
:key="category.id"
234+
>
231235
{{ category.name }}
232236
</option>
233237
</select>
@@ -237,7 +241,11 @@ function onPriorityChange(event: Event, id: TodoId) {
237241
:value="todo.priority"
238242
@change="onPriorityChange($event, todo.id)"
239243
>
240-
<option v-for="priority in PriorityList" :value="priority" :key="priority">
244+
<option
245+
v-for="priority in PriorityList"
246+
:value="priority"
247+
:key="priority"
248+
>
241249
{{ priority }}
242250
</option>
243251
</select>

0 commit comments

Comments
 (0)