Skip to content

Commit

Permalink
chore: DEMO: Weather App Added (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank77maruti authored Nov 4, 2024
1 parent e098ecd commit a647ba2
Show file tree
Hide file tree
Showing 35 changed files with 6,660 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/weather_app_mayank/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VITE_API_KEY=afc52dc7464c4196071f9a699808f0ee

VITE_APP_TOLGEE_API_URL=https://app.tolgee.io
VITE_APP_TOLGEE_API_KEY=tgpak_geydqnjtl5zgiz3jnzyxg5bugm4wg4tvmrzwiodnnv2tknzvoq3a
25 changes: 25 additions & 0 deletions demos/weather_app_mayank/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
*.production

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Binary file added demos/weather_app_mayank/README.md
Binary file not shown.
38 changes: 38 additions & 0 deletions demos/weather_app_mayank/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: { react: { version: '18.3' } },
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...reactHooks.configs.recommended.rules,
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
13 changes: 13 additions & 0 deletions demos/weather_app_mayank/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Weather App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions demos/weather_app_mayank/messages/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"app-title": "سواء كان التطبيق",
"current-weather": "الطقس الحالي",
"enter-city": "أدخل اسم المدينة",
"feels-like": "أشعر وكأن",
"Forecast": "التوقعات",
"Humidity": "الرطوبة",
"Loading": "جار التحميل",
"not-allow": "رفض المستخدم تحديد الموقع الجغرافي",
"Pressure": "الضغط",
"search-key": "بحث",
"Wind": "رياح"
}
13 changes: 13 additions & 0 deletions demos/weather_app_mayank/messages/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"app-title": "Whether App",
"current-weather": "Current Weather",
"enter-city": "Enter city name",
"feels-like": "Feels like",
"Forecast": "Forecast",
"Humidity": "Humidity",
"Loading": "Loading",
"not-allow": "User denied Geolocation",
"Pressure": "Pressure",
"search-key": "Search",
"Wind": "Wind"
}
13 changes: 13 additions & 0 deletions demos/weather_app_mayank/messages/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"app-title": "Si la aplicación",
"current-weather": "Clima Actual",
"enter-city": "Ingrese el nombre de la ciudad",
"feels-like": "Se siente como",
"Forecast": "Pronóstico",
"Humidity": "Humedad",
"Loading": "Cargando",
"not-allow": "El usuario ha denegado la geolocalización",
"Pressure": "Presión",
"search-key": "Buscar",
"Wind": "Viento"
}
13 changes: 13 additions & 0 deletions demos/weather_app_mayank/messages/hi-IN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"app-title": "मौसम ऐप",
"current-weather": "वर्तमान मौसम",
"enter-city": "शहर का नाम दर्ज करें",
"feels-like": "ऐसा लगता है",
"Forecast": "पूर्वानुमान",
"Humidity": "नमी",
"Loading": "लोड हो रहा है",
"not-allow": "उपयोगकर्ता ने जियोलोकेशन अस्वीकार कर दिया",
"Pressure": "दबाव",
"search-key": "खोजें",
"Wind": "हवा"
}
7 changes: 7 additions & 0 deletions demos/weather_app_mayank/messages/zh-Hans-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"app-title": "是否应用程序",
"current-weather": "当前天气",
"enter-city": "输入城市名称",
"feels-like": "感觉就像",
"search-key": "搜索"
}
9 changes: 9 additions & 0 deletions demos/weather_app_mayank/messages/zh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"app-title": "是否应用程序",
"current-weather": "当前天气",
"enter-city": "输入城市名称",
"feels-like": "感觉像",
"Humidity": "湿度",
"search-key": "搜索",
"Wind": ""
}
Loading

0 comments on commit a647ba2

Please sign in to comment.