Skip to content

Commit

Permalink
Merge pull request #355 from appwrite/feat-nuxt-tutorial
Browse files Browse the repository at this point in the history
Feat nuxt tutorial
  • Loading branch information
Vincent (Wen Yu) Ge authored Jan 18, 2024
2 parents 6902bc9 + 6afe0f3 commit 1d43024
Show file tree
Hide file tree
Showing 23 changed files with 890 additions and 792 deletions.
2 changes: 0 additions & 2 deletions src/lib/utils/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import plaintext from 'highlight.js/lib/languages/plaintext';
import graphql from 'highlight.js/lib/languages/graphql';
import http from 'highlight.js/lib/languages/http';
import css from 'highlight.js/lib/languages/css';
import groovy from 'highlight.js/lib/languages/groovy';
import { Platform } from './references';

const languages = {
Expand Down Expand Up @@ -59,7 +58,6 @@ const languages = {
rb: ruby,
cs: csharp,
css: css,
groovy: groovy,
svelte: xml
} as const satisfies Record<string, LanguageFn>;

Expand Down
7 changes: 3 additions & 4 deletions src/lib/utils/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export const platformMap: Record<Language | string, string> = {
[Platform.ServerRest]: 'REST',
sh: 'Shell',
js: 'JavaScript',
ts: 'TypeScript',
jsx: 'React',
jsx: 'React',
tsx: 'React',
ts: 'TypeScript',
typescript: 'TypeScript',
dart: 'Dart',
java: 'Java',
Expand Down Expand Up @@ -97,8 +97,7 @@ export const platformMap: Record<Language | string, string> = {
yaml: 'YAML',
text: 'Text',
vue: 'Vue',
svelte: 'Svelte',
groovy: 'Groovy'
svelte: 'Svelte'
};

export const serviceMap: Record<Service, string> = {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -479,4 +479,4 @@
:global(.theme-dark) .bg-overlay {
background: linear-gradient(to right, #19191c00 0%, #19191c00 10%, #19191c);
}
</style>
</style>
6 changes: 3 additions & 3 deletions src/routes/docs/quick-starts/android/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Find your project's ID in the **Settings** page.
Create a new file `Appwrite.kt` and add the following code to it, replacing `[YOUR_PROJECT_ID]` with your project ID.

```kotlin
package <YOUR_ROOT_PACKAGE_HERE>
package com.example.myapplication

import android.content.Context
import io.appwrite.Client
Expand Down Expand Up @@ -139,7 +139,7 @@ object Appwrite {
Add the following code to `MainActivity.kt`.

```kotlin
package <YOUR_ROOT_PACKAGE_HERE>
package com.example.myapplication

import android.os.Bundle
import androidx.activity.ComponentActivity
Expand All @@ -151,7 +151,7 @@ import androidx.compose.runtime.*
import androidx.compose.ui.*
import androidx.compose.ui.text.input.*
import androidx.compose.ui.unit.*
import <YOUR_ROOT_PACKAGE_HERE>.ui.theme.MyApplicationTheme
import com.example.myapplication.ui.theme.MyApplicationTheme
import kotlinx.coroutines.launch

class MainActivity : ComponentActivity() {
Expand Down
22 changes: 8 additions & 14 deletions src/routes/docs/tutorials/android/step-1/+page.markdoc
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
---
layout: tutorial
title: Build an ideas tracker with Android
title: Coming soon
description: Learn to build an Android app with no backend code using an Appwrite backend.
framework: Android
category: Mobile and native
step: 1
draft: true
---

**Idea tracker**: an app to track all the side project ideas that you'll start, but probably never finish.
In this tutorial, you will build Idea tracker with Appwrite and Android.
Improve the docs, add this guide.

# Concepts {% #concepts %}
This tutorial will introduce the following concepts:
We still don't have this guide in place, but we do have some great news.
The Appwrite docs, just like Appwrite, is completely open sourced.
This means, anyone can help improve them and add new guides and tutorials.

1. Setting up your first project
2. Authentication
3. Databases and collections
4. Queries and pagination
5. Storage

# Prerequisites {% #prerequisites %}
1. Basic knowledge of Kotlin and Android development.
2. Have [Android Studio](https://developer.android.com/studio) installed on your computer.
If you see this page, **we're actively looking for contributions to this page**.
Follow our contribution guidelines, open a PR to [our Website repo](https://github.com/appwrite/website), and collaborate with our core team to improve this page.
48 changes: 0 additions & 48 deletions src/routes/docs/tutorials/android/step-2/+page.markdoc

This file was deleted.

65 changes: 0 additions & 65 deletions src/routes/docs/tutorials/android/step-3/+page.markdoc

This file was deleted.

Loading

0 comments on commit 1d43024

Please sign in to comment.