create-gentiq-app 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -36,21 +36,21 @@ const WeatherCard = ({ part }: ToolCallComponentProps) => {
|
|
|
36
36
|
|
|
37
37
|
const getIcon = (size = 24) => {
|
|
38
38
|
switch (condition) {
|
|
39
|
-
case 'sunny':
|
|
40
|
-
case 'rainy':
|
|
41
|
-
case 'snowy':
|
|
42
|
-
case 'windy':
|
|
43
|
-
default:
|
|
39
|
+
case 'sunny': return <Sun size={size} strokeWidth={2.5} className="text-amber-100" />
|
|
40
|
+
case 'rainy': return <CloudRain size={size} strokeWidth={2.5} className="text-blue-100" />
|
|
41
|
+
case 'snowy': return <Snowflake size={size} strokeWidth={2.5} className="text-slate-600" />
|
|
42
|
+
case 'windy': return <Wind size={size} strokeWidth={2.5} className="text-emerald-100" />
|
|
43
|
+
default: return <Cloud size={size} strokeWidth={2.5} className="text-indigo-100" />
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const getColors = () => {
|
|
48
48
|
switch (condition) {
|
|
49
|
-
case 'sunny':
|
|
50
|
-
case 'rainy':
|
|
51
|
-
case 'snowy':
|
|
52
|
-
case 'windy':
|
|
53
|
-
default:
|
|
49
|
+
case 'sunny': return 'from-amber-400 via-orange-500 to-rose-500'
|
|
50
|
+
case 'rainy': return 'from-blue-600 via-indigo-700 to-violet-800'
|
|
51
|
+
case 'snowy': return 'from-slate-100 via-blue-50 to-slate-200'
|
|
52
|
+
case 'windy': return 'from-emerald-400 via-teal-500 to-cyan-600'
|
|
53
|
+
default: return 'from-indigo-500 via-purple-500 to-pink-500'
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -101,8 +101,8 @@ const WeatherCard = ({ part }: ToolCallComponentProps) => {
|
|
|
101
101
|
// Auth adapter
|
|
102
102
|
// ---------------------------------------------------------------------------
|
|
103
103
|
const LocalStorageAuthAdapter = {
|
|
104
|
-
getToken:
|
|
105
|
-
setToken:
|
|
104
|
+
getToken: () => localStorage.getItem('token'),
|
|
105
|
+
setToken: (token: string) => localStorage.setItem('token', token),
|
|
106
106
|
clearToken: () => localStorage.removeItem('token'),
|
|
107
107
|
getHeaders: (): Record<string, string> => {
|
|
108
108
|
const token = localStorage.getItem('token');
|
|
@@ -161,12 +161,7 @@ export default function App() {
|
|
|
161
161
|
showShare: true
|
|
162
162
|
}}
|
|
163
163
|
welcome={{
|
|
164
|
-
greeting: "chat:welcome.greeting"
|
|
165
|
-
prompts: [
|
|
166
|
-
{ text: 'chat:welcome.suggestion.features', icon: Sparkles },
|
|
167
|
-
{ text: 'chat:welcome.suggestion.tools', icon: Zap },
|
|
168
|
-
{ text: 'chat:welcome.suggestion.weather', icon: Sun }
|
|
169
|
-
]
|
|
164
|
+
greeting: "chat:welcome.greeting"
|
|
170
165
|
}}
|
|
171
166
|
threadActions={{
|
|
172
167
|
feedback: true,
|
|
@@ -181,7 +176,7 @@ export default function App() {
|
|
|
181
176
|
}
|
|
182
177
|
}}
|
|
183
178
|
theme={{
|
|
184
|
-
typography: {
|
|
179
|
+
typography: {
|
|
185
180
|
fontFamily: {
|
|
186
181
|
en: 'Lato',
|
|
187
182
|
fa: 'Vazirmatn'
|
|
@@ -193,8 +188,8 @@ export default function App() {
|
|
|
193
188
|
disclaimer="chat:disclaimer"
|
|
194
189
|
i18n={{
|
|
195
190
|
resources: {
|
|
196
|
-
en: {
|
|
197
|
-
chat: {
|
|
191
|
+
en: {
|
|
192
|
+
chat: {
|
|
198
193
|
input_placeholder: 'Type your query to the AI...',
|
|
199
194
|
disclaimer: "AI can make mistakes! Check important information.",
|
|
200
195
|
welcome: {
|
|
@@ -217,8 +212,8 @@ export default function App() {
|
|
|
217
212
|
}
|
|
218
213
|
}
|
|
219
214
|
},
|
|
220
|
-
fa: {
|
|
221
|
-
chat: {
|
|
215
|
+
fa: {
|
|
216
|
+
chat: {
|
|
222
217
|
input_placeholder: 'هر چی میخوای ازم بپرس',
|
|
223
218
|
disclaimer: "هوش مصنوعی میتواند اشتباه کند! اطلاعات مهم را بررسی کنید.",
|
|
224
219
|
welcome: {
|