Update landing page examples (#6254)

This commit is contained in:
mamoodi
2025-01-14 10:09:30 -05:00
committed by GitHub
parent f0ebf3eba8
commit 37b7173481
2 changed files with 26 additions and 39 deletions

View File

@@ -2129,20 +2129,20 @@
"no": "Les dette",
"tr": "Başlangıç kılavuzu"
},
"LANDING$BUILD_APP_BUTTON": {
"en": "Build an app to view pull requests",
"ja": "プルリクエストを表示するアプリを開発する",
"zh-CN": "建一个查看拉取请求的应用",
"zh-TW": "建一個查看拉取請求的應用",
"ko-KR": "풀 리퀘스트를 보기 위한 앱 만들기",
"fr": "Construire une application pour voir les pull requests",
"es": "Construir una aplicación para ver pull requests",
"de": "Eine App zum Anzeigen von Pull Requests erstellen",
"it": "Costruisci un'app per visualizzare le pull request",
"pt": "Construir um aplicativo para visualizar pull requests",
"ar": "بناء تطبيق لعرض طلبات السحب",
"no": "Bygg en app for å se pull requests",
"tr": "Uygulama oluştur"
"SUGGESTIONS$HELLO_WORLD": {
"en": "Create a Hello World app",
"ja": "Hello World アプリを作成",
"zh-CN": "建一个 Hello World 应用",
"zh-TW": "建一個 Hello World 應用",
"ko-KR": "Hello World 앱 만들기",
"fr": "Créer une application Hello World",
"es": "Crear una aplicación Hello World",
"de": "Erstelle eine Hello World-App",
"it": "Crea un'app Hello World",
"pt": "Criar um aplicativo Hello World",
"ar": "إنشاء تطبيق Hello World",
"no": "Lag en Hello World-app",
"tr": "Bir Hello World uygulaması oluştur"
},
"SUGGESTIONS$TODO_APP": {
"en": "Build a todo list application",

View File

@@ -1,24 +1,18 @@
import { I18nKey } from "#/i18n/declaration";
const KEY_1 = I18nKey.LANDING$BUILD_APP_BUTTON;
const VALUE_1 = `I want to create a React app to view all of the open pull
requests that exist on all of my team's github repos. Here
are some details:
const KEY_1 = I18nKey.SUGGESTIONS$HACKER_NEWS;
const VALUE_1 = `Please write a bash script which displays the top story on Hacker News. It should show the title, the link, and the number of points.
The script should only use tools that are widely available on unix systems, like curl and grep.`;
1. Please initialize the app using vite and react-ts.
2. You can test the app on the https://github.com/OpenDevin/
github org
3. I have provided a github token in the environment (the
variable name is $GITHUB_TOKEN)
4. It should have a dropdown that allows me to select a
single repo within the org.
5. There should be tests written using vitest.
const KEY_2 = I18nKey.SUGGESTIONS$HELLO_WORLD;
const VALUE_2 = `I want to create a Hello World app in Javascript that:
* Displays Hello World in the middle.
* Has a button that when clicked, changes the greeting with a bouncing animation to fun versions of Hello.
* Has a counter for how many times the button has been clicked.
* Has another button that changes the app's background color.`;
When things are working, initialize a github repo, create
a .gitignore file, and commit the changes.`;
const KEY_2 = I18nKey.SUGGESTIONS$TODO_APP;
const VALUE_2 = `I want to create a VueJS app that allows me to:
const KEY_3 = I18nKey.SUGGESTIONS$TODO_APP;
const VALUE_3 = `I want to create a VueJS app that allows me to:
* See all the items on my todo list
* add a new item to the list
* mark an item as done
@@ -26,14 +20,7 @@ const VALUE_2 = `I want to create a VueJS app that allows me to:
* change the text of an item
* set a due date on the item
This should be a client-only app with no backend. The list should persist in localStorage.
Please add tests for all of the above and make sure they pass`;
const KEY_3 = I18nKey.SUGGESTIONS$HACKER_NEWS;
const VALUE_3 = `Please write a bash script which displays the top story on Hacker News. It should show the title, the link, and the number of points.
The script should only use tools that are widely available on unix systems, like curl and grep.`;
This should be a client-only app with no backend. The list should persist in localStorage.`;
export const NON_REPO_SUGGESTIONS: Record<string, string> = {
[KEY_1]: VALUE_1,