Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
laurielim committed Jul 26, 2023
0 parents commit 57cf435
Show file tree
Hide file tree
Showing 31 changed files with 2,814 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
111 changes: 111 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"prettier.documentSelectors": [
"**/*.svelte"
],
"tailwindCSS.classAttributes": [
"class",
"accent",
"active",
"aspectRatio",
"background",
"badge",
"bgBackdrop",
"bgDark",
"bgDrawer",
"bgLight",
"blur",
"border",
"button",
"buttonAction",
"buttonBack",
"buttonClasses",
"buttonComplete",
"buttonDismiss",
"buttonNeutral",
"buttonNext",
"buttonPositive",
"buttonTextCancel",
"buttonTextConfirm",
"buttonTextFirst",
"buttonTextLast",
"buttonTextNext",
"buttonTextPrevious",
"buttonTextSubmit",
"caretClosed",
"caretOpen",
"chips",
"color",
"controlSeparator",
"controlVariant",
"cursor",
"display",
"element",
"fill",
"fillDark",
"fillLight",
"flex",
"gap",
"gridColumns",
"height",
"hover",
"indent",
"justify",
"meter",
"padding",
"position",
"regionBackdrop",
"regionBody",
"regionCaption",
"regionCaret",
"regionCell",
"regionChildren",
"regionCone",
"regionContent",
"regionControl",
"regionDefault",
"regionDrawer",
"regionFoot",
"regionFootCell",
"regionFooter",
"regionHead",
"regionHeadCell",
"regionHeader",
"regionIcon",
"regionInterface",
"regionInterfaceText",
"regionLabel",
"regionLead",
"regionLegend",
"regionList",
"regionNavigation",
"regionPage",
"regionPanel",
"regionRowHeadline",
"regionRowMain",
"regionSummary",
"regionSymbol",
"regionTab",
"regionTrail",
"ring",
"rounded",
"select",
"shadow",
"slotDefault",
"slotFooter",
"slotHeader",
"slotLead",
"slotMessage",
"slotMeta",
"slotPageContent",
"slotPageFooter",
"slotPageHeader",
"slotSidebarLeft",
"slotSidebarRight",
"slotTrail",
"spacing",
"text",
"track",
"width",
"zIndex"
]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Kreolingo

A Duolingo ripoff to help you learn Mauritian Creole. This is a project built with UI toolkit [Skeleton](https://www.skeleton.dev/) which uses [Svelte](https://svelte.dev/) and [Tailwind CSS](https://tailwindcss.com/).
22 changes: 22 additions & 0 deletions lessons/lesson-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Lesson 1",
"description": "Use basic phrases, talk about food and drink",
"content": [
{
"type": "MC",
"question": "Select the correct option",
"options": {
"man": "misier",
"woman": "madam",
"bread": "dipain",
"girl": "tifi"
}
},
{
"type": "Q",
"question": "How do you say 'girl'?",
"answer": "tifi",
"options": ["tifi", "diri", "misier"]
}
]
}
18 changes: 18 additions & 0 deletions lessons/lesson-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Lesson 2",
"description": "Greet people, use affirmative phrases",
"content": [
{
"type": "S",
"question": "Mo ___ Jean",
"answer": "Mo apel Jean",
"options": ["dipain", "bwar", "apel"]
},
{
"type": "Q",
"question": "How do you say 'rice'?",
"answer": "diri",
"options": ["tifi", "diri", "misier"]
}
]
}
18 changes: 18 additions & 0 deletions lessons/lesson-3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Lesson 3",
"description": "Say what you don't do, use articles",
"content": [
{
"type": "MC",
"question": "Mo ___ Jean",
"answer": "Mo apel Jean",
"options": ["dipain", "bwar", "apel"]
},
{
"type": "Q",
"question": "How do you say 'rice'?",
"answer": "diri",
"options": ["tifi", "diri", "misier"]
}
]
}
18 changes: 18 additions & 0 deletions lessons/lesson-4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Lesson 4",
"description": "Discuss food and drink, talk about animals",
"content": [
{
"type": "S",
"question": "Mo ___ Jean",
"answer": "Mo apel Jean",
"options": ["dipain", "bwar", "apel"]
},
{
"type": "MC",
"question": "How do you say 'rice'?",
"answer": "diri",
"options": ["tifi", "diri", "misier"]
}
]
}
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "kreolingo-svelte",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@floating-ui/dom": "^1.4.5",
"@skeletonlabs/skeleton": "^1.10.0",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0",
"@tailwindcss/forms": "^0.5.4",
"@types/node": "^20.4.4",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.26.0",
"fs": "^0.0.1-security",
"path": "^0.12.7",
"postcss": "^8.4.27",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"tailwindcss": "^3.3.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.3.0"
},
"type": "module"
}
Loading

0 comments on commit 57cf435

Please sign in to comment.