Again migrated thoughts to 0.12. (#1789)

* Again migrated thoughts to 0.12.

* fix
This commit is contained in:
Martin Šošić 2024-02-21 13:41:00 +01:00 committed by GitHub
parent f23edd3ba1
commit dbe8266bb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 1028 additions and 5009 deletions

View File

@ -5,8 +5,7 @@ Thoughts
Run `wasp start` to start the app in development mode.
This app is deployed at https://wasp-thoughts.netlify.app/ : client at Netlify, server and db at Heroku.
It is also deployed at https://wasp-thoughts-client.fly.dev/ : client, server and db on Fly.io .
This app is deployed at https://wasp-thoughts-client.fly.dev/ : client, server and db on Fly.io .
## TODO

View File

@ -1,10 +1,10 @@
# fly.toml app configuration file generated for wasp-thoughts-client on 2023-10-13T13:45:18+02:00
# fly.toml app configuration file generated for wasp-thoughts-client on 2024-02-21T12:54:04+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "wasp-thoughts-client"
primary_region = "mia"
app = 'wasp-thoughts-client'
primary_region = 'mia'
[build]
@ -14,4 +14,9 @@ primary_region = "mia"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

View File

@ -1,10 +1,10 @@
# fly.toml app configuration file generated for wasp-thoughts-server on 2023-10-13T13:45:12+02:00
# fly.toml app configuration file generated for wasp-thoughts-server on 2024-02-21T12:53:55+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "wasp-thoughts-server"
primary_region = "mia"
app = 'wasp-thoughts-server'
primary_region = 'mia'
[build]
@ -13,5 +13,10 @@ primary_region = "mia"
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
min_machines_running = 1
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

View File

@ -5,7 +5,9 @@ app Thoughts {
title: "Thoughts",
db: {
system: PostgreSQL,
seeds: [ import { devSeedBasic } from "@src/server/seeds.js" ]
seeds: [
import { devSeedBasic } from "@src/server/seeds.js"
]
},
auth: {
userEntity: User,

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
{
"name": "thoughts",
"dependencies": {
"react-markdown": "6.0.1",
"color-hash": "2.0.1",
"wasp": "file:.wasp/out/sdk/wasp",
"react": "^18.2.0",
"react-markdown": "^6.0.1",
"color-hash": "^2.0.1"
"react": "^18.2.0"
},
"devDependencies": {
"typescript": "^5.1.0",

View File

@ -1,6 +1,9 @@
import React from "react";
import { getUsername } from "wasp/auth";
import { logout } from "wasp/client/auth";
import React from "react";
import "./TopNavbar.css";
const TopNavbar = ({ user }) => {