atcoder-novisteps / atcodernovisteps Goto Github PK
View Code? Open in Web Editor NEW【非公式】 AtCoder 上の問題について、取組み状況を記録していくサイトです。各問題が細かく難易度付けされており、必要な知識を段階的に習得できます。
Home Page: https://atcoder-novisteps.vercel.app/
License: MIT License
【非公式】 AtCoder 上の問題について、取組み状況を記録していくサイトです。各問題が細かく難易度付けされており、必要な知識を段階的に習得できます。
Home Page: https://atcoder-novisteps.vercel.app/
License: MIT License
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
// See:
// https://lucia-auth.com/database-adapters/prisma/
model User {
id String @id @unique
auth_session Session[]
key Key[]
// task_answers TaskAnswer[]
// here you can add custom fields for your user
// e.g. name, email, username, roles, etc.
username String @unique
role Roles @default(USER)
created_at DateTime @default(now())
updated_at DateTime @updatedAt
@@map("user")
}
// See:
// https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#defining-enums
enum Roles {
ADMIN
USER
}
model Session {
id String @id @unique
user_id String
active_expires BigInt
idle_expires BigInt
user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
@@index([user_id])
@@map("session")
}
model Key {
id String @id @unique
hashed_password String?
user_id String
user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
@@index([user_id])
@@map("key")
}
// model Task {
// id String @id @unique
// // task_answers TaskAnswer[]
// contest_id String
// task_id String
// title String
// grade TaskGrade @default(PENDING)
// created_at DateTime @default(now())
// updated_at DateTime @updatedAt
// @@map("task")
// }
// // 10級(最も簡単)〜7段(最難関)。基準は非公開。
// enum TaskGrade {
// PENDING // 未確定
// Q10 // 10Qのように表記したいが、数字を最初の文字として利用できないため
// Q9
// Q8
// Q7
// Q6
// Q5
// Q4
// Q3
// Q2
// Q1
// D1
// D2
// D3
// D4
// D5
// D6
// D7
// @@map("task_grade")
// }
// model TaskAnswer {
// id String @id @unique
// task_id String
// user_id String
// submission_status SubmissionStatus @default(NS)
// created_at DateTime @default(now())
// updated_at DateTime @updatedAt
// task Task @relation(references: [id], fields: [task_id], onDelete: Cascade)
// user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
// @@index([task_id])
// @@index([user_id])
// @@map("task_answer")
// }
// // TODO: TLEや「後で解く(Solve Later)」などの選択肢を増やす場合は、スキーマを更新する
// enum SubmissionStatus {
// NS // No Submission
// WA // Wrong Answer
// AC // Accepted
// }
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
// See:
// https://lucia-auth.com/database-adapters/prisma/
model User {
id String @id @unique
auth_session Session[]
key Key[]
// task_answers TaskAnswer[]
// here you can add custom fields for your user
// e.g. name, email, username, roles, etc.
username String @unique
role Roles @default(USER)
created_at DateTime @default(now())
updated_at DateTime @updatedAt
@@map("user")
}
// See:
// https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#defining-enums
enum Roles {
ADMIN
USER
}
model Session {
id String @id @unique
user_id String
active_expires BigInt
idle_expires BigInt
user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
@@index([user_id])
@@map("session")
}
model Key {
id String @id @unique
hashed_password String?
user_id String
user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
@@index([user_id])
@@map("key")
}
// model Task {
// id String @id @unique
// // task_answers TaskAnswer[]
// contest_id String
// task_id String
// title String
// grade TaskGrade @default(PENDING)
// created_at DateTime @default(now())
// updated_at DateTime @updatedAt
// @@map("task")
// }
// // 10級(最も簡単)〜7段(最難関)。基準は非公開。
// enum TaskGrade {
// PENDING // 未確定
// Q10 // 10Qのように表記したいが、数字を最初の文字として利用できないため
// Q9
// Q8
// Q7
// Q6
// Q5
// Q4
// Q3
// Q2
// Q1
// D1
// D2
// D3
// D4
// D5
// D6
// D7
// @@map("task_grade")
// }
// model TaskAnswer {
// id String @id @unique
// task_id String
// user_id String
// submission_status SubmissionStatus @default(NS)
// created_at DateTime @default(now())
// updated_at DateTime @updatedAt
// task Task @relation(references: [id], fields: [task_id], onDelete: Cascade)
// user User @relation(references: [id], fields: [user_id], onDelete: Cascade)
// @@index([task_id])
// @@index([user_id])
// @@map("task_answer")
// }
// // TODO: TLEや「後で解く(Solve Later)」などの選択肢を増やす場合は、スキーマを更新する
// enum SubmissionStatus {
// NS // No Submission
// WA // Wrong Answer
// AC // Accepted
// }
Vercelだとチーム開発でコストがかかる
https://bun.sh/guides/ecosystem/sveltekit
https://bun.sh/guides/ecosystem/vite
https://github.com/gornostay25/svelte-adapter-bun
https://kenkoooo.com/atcoder/resources/problems.json
...
{
"id":"abc319_a",
"contest_id":"abc319",
"problem_index":"A",
"name":"Legendary Players",
"title":"A. Legendary Players"
},
...
https://joyofcode.xyz/sveltekit-with-tailwind-css
少なくとも以下の部分で名称の変更が必要です
// Lucia
https://github.com/pilcrowOnPaper/lucia
AtCoder List
AtCoderToNotion
AC Solutions
アルゴ式
Svelte Awesome Icons
種類がとても豊富です
https://github.com/shinokada/svelte-awesome-icons
https://svelte-awesome-icons.vercel.app/solid
もしかすると、以下の方法で改善されるかもしれません
<script lang="ts">
import { enhance } from '$app/forms';
///
</script>
<form action="/name" method="POST" use:enhance>
<button type="submit">Click</button>
</form>
上記の方法では、ボタンを押しても画面の更新がされていないようです
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.