Add 3 files
Browse files- README.md +7 -5
- index.html +1017 -19
- prompts.txt +2 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: code2app
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: red
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,1017 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en" class="h-full">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Code2APK Pro - Advanced Code to APK Converter</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.min.css" rel="stylesheet">
|
10 |
+
<script>
|
11 |
+
tailwind.config = {
|
12 |
+
darkMode: 'class',
|
13 |
+
theme: {
|
14 |
+
extend: {
|
15 |
+
colors: {
|
16 |
+
primary: {
|
17 |
+
50: '#f0f9ff',
|
18 |
+
100: '#e0f2fe',
|
19 |
+
200: '#bae6fd',
|
20 |
+
300: '#7dd3fc',
|
21 |
+
400: '#38bdf8',
|
22 |
+
500: '#0ea5e9',
|
23 |
+
600: '#0284c7',
|
24 |
+
700: '#0369a1',
|
25 |
+
800: '#075985',
|
26 |
+
900: '#0c4a6e',
|
27 |
+
},
|
28 |
+
secondary: {
|
29 |
+
50: '#f5f3ff',
|
30 |
+
100: '#ede9fe',
|
31 |
+
200: '#ddd6fe',
|
32 |
+
300: '#c4b5fd',
|
33 |
+
400: '#a78bfa',
|
34 |
+
500: '#8b5cf6',
|
35 |
+
600: '#7c3aed',
|
36 |
+
700: '#6d28d9',
|
37 |
+
800: '#5b21b6',
|
38 |
+
900: '#4c1d95',
|
39 |
+
},
|
40 |
+
accent: {
|
41 |
+
50: '#f0fdf4',
|
42 |
+
100: '#dcfce7',
|
43 |
+
200: '#bbf7d0',
|
44 |
+
300: '#86efac',
|
45 |
+
400: '#4ade80',
|
46 |
+
500: '#22c55e',
|
47 |
+
600: '#16a34a',
|
48 |
+
700: '#15803d',
|
49 |
+
800: '#166534',
|
50 |
+
900: '#14532d',
|
51 |
+
}
|
52 |
+
},
|
53 |
+
fontFamily: {
|
54 |
+
'code': ['Fira Code', 'monospace']
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
58 |
+
}
|
59 |
+
</script>
|
60 |
+
<style>
|
61 |
+
.code-editor {
|
62 |
+
font-family: 'Fira Code', 'Courier New', monospace;
|
63 |
+
min-height: 300px;
|
64 |
+
tab-size: 2;
|
65 |
+
}
|
66 |
+
.dropdown:hover .dropdown-menu {
|
67 |
+
display: block;
|
68 |
+
}
|
69 |
+
.slide-fade-enter-active {
|
70 |
+
transition: all 0.3s ease-out;
|
71 |
+
}
|
72 |
+
.slide-fade-leave-active {
|
73 |
+
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
74 |
+
}
|
75 |
+
.slide-fade-enter-from,
|
76 |
+
.slide-fade-leave-to {
|
77 |
+
transform: translateX(20px);
|
78 |
+
opacity: 0;
|
79 |
+
}
|
80 |
+
.progress-bar {
|
81 |
+
transition: width 0.5s ease-in-out;
|
82 |
+
}
|
83 |
+
.toast {
|
84 |
+
animation: fadeIn 0.3s, fadeOut 0.5s 2.5s;
|
85 |
+
}
|
86 |
+
@keyframes fadeIn {
|
87 |
+
from { opacity: 0; transform: translateY(10px); }
|
88 |
+
to { opacity: 1; transform: translateY(0); }
|
89 |
+
}
|
90 |
+
@keyframes fadeOut {
|
91 |
+
from { opacity: 1; transform: translateY(0); }
|
92 |
+
to { opacity: 0; transform: translateY(-10px); }
|
93 |
+
}
|
94 |
+
.floating-btn {
|
95 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
96 |
+
transition: all 0.3s ease;
|
97 |
+
}
|
98 |
+
.floating-btn:hover {
|
99 |
+
transform: translateY(-2px);
|
100 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
101 |
+
}
|
102 |
+
.app-preview {
|
103 |
+
background-image: linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
|
104 |
+
linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
|
105 |
+
linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
|
106 |
+
linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
|
107 |
+
background-size: 20px 20px;
|
108 |
+
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
|
109 |
+
}
|
110 |
+
.dark .app-preview {
|
111 |
+
background-image: linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
112 |
+
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
113 |
+
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
114 |
+
linear-gradient(-45deg, transparent 75%, #1f2937 75%);
|
115 |
+
}
|
116 |
+
.code-line-numbers {
|
117 |
+
counter-reset: line;
|
118 |
+
}
|
119 |
+
.code-line-numbers > div:before {
|
120 |
+
counter-increment: line;
|
121 |
+
content: counter(line);
|
122 |
+
display: inline-block;
|
123 |
+
width: 2em;
|
124 |
+
margin-right: 1em;
|
125 |
+
text-align: right;
|
126 |
+
color: #6b7280;
|
127 |
+
}
|
128 |
+
.syntax-highlight {
|
129 |
+
background-color: rgba(255, 230, 0, 0.2);
|
130 |
+
border-radius: 2px;
|
131 |
+
}
|
132 |
+
.token-line.highlight-line {
|
133 |
+
background-color: rgba(59, 130, 246, 0.1);
|
134 |
+
}
|
135 |
+
.editor-toolbar {
|
136 |
+
scrollbar-width: thin;
|
137 |
+
scrollbar-color: #9ca3af #f3f4f6;
|
138 |
+
}
|
139 |
+
.dark .editor-toolbar {
|
140 |
+
scrollbar-color: #4b5563 #1f2937;
|
141 |
+
}
|
142 |
+
.editor-toolbar::-webkit-scrollbar {
|
143 |
+
height: 6px;
|
144 |
+
}
|
145 |
+
.editor-toolbar::-webkit-scrollbar-track {
|
146 |
+
background: #f3f4f6;
|
147 |
+
}
|
148 |
+
.dark .editor-toolbar::-webkit-scrollbar-track {
|
149 |
+
background: #1f2937;
|
150 |
+
}
|
151 |
+
.editor-toolbar::-webkit-scrollbar-thumb {
|
152 |
+
background-color: #9ca3af;
|
153 |
+
border-radius: 3px;
|
154 |
+
}
|
155 |
+
.dark .editor-toolbar::-webkit-scrollbar-thumb {
|
156 |
+
background-color: #4b5563;
|
157 |
+
}
|
158 |
+
.animate-pulse {
|
159 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
160 |
+
}
|
161 |
+
@keyframes pulse {
|
162 |
+
0%, 100% { opacity: 1; }
|
163 |
+
50% { opacity: 0.5; }
|
164 |
+
}
|
165 |
+
</style>
|
166 |
+
</head>
|
167 |
+
<body class="bg-gray-50 dark:bg-gray-900 text-gray-800 dark:text-gray-200 h-full">
|
168 |
+
<div class="min-h-full flex flex-col">
|
169 |
+
<!-- Header -->
|
170 |
+
<header class="bg-gradient-to-r from-primary-600 to-primary-800 dark:from-primary-800 dark:to-primary-900 text-white shadow-lg">
|
171 |
+
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
|
172 |
+
<div class="flex items-center space-x-3">
|
173 |
+
<div class="w-8 h-8 bg-white rounded-md flex items-center justify-center">
|
174 |
+
<i class="fas fa-code text-primary-600 text-lg"></i>
|
175 |
+
</div>
|
176 |
+
<h1 class="text-xl font-bold">Code2APK <span class="text-xs bg-accent-500 text-white px-2 py-1 rounded-full ml-1">PRO</span></h1>
|
177 |
+
</div>
|
178 |
+
<div class="flex items-center space-x-4">
|
179 |
+
<button id="theme-toggle" class="p-2 rounded-full hover:bg-primary-500 dark:hover:bg-primary-700 transition-colors">
|
180 |
+
<i class="fas fa-moon dark:hidden"></i>
|
181 |
+
<i class="fas fa-sun hidden dark:block"></i>
|
182 |
+
</button>
|
183 |
+
<div class="dropdown relative">
|
184 |
+
<button class="p-2 rounded-full hover:bg-primary-500 dark:hover:bg-primary-700 transition-colors">
|
185 |
+
<i class="fas fa-language text-xl"></i>
|
186 |
+
</button>
|
187 |
+
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg z-10 hidden border border-gray-200 dark:border-gray-700">
|
188 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="en">
|
189 |
+
<span class="w-5 mr-2">🇬🇧</span> English
|
190 |
+
</a>
|
191 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="es">
|
192 |
+
<span class="w-5 mr-2">🇪🇸</span> Español
|
193 |
+
</a>
|
194 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="fr">
|
195 |
+
<span class="w-5 mr-2">🇫🇷</span> Français
|
196 |
+
</a>
|
197 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="ar">
|
198 |
+
<span class="w-5 mr-2">🇸🇦</span> العربية
|
199 |
+
</a>
|
200 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="zh">
|
201 |
+
<span class="w-5 mr-2">🇨🇳</span> 中文
|
202 |
+
</a>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
<button id="settings-btn" class="p-2 rounded-full hover:bg-primary-500 dark:hover:bg-primary-700 transition-colors">
|
206 |
+
<i class="fas fa-cog text-xl"></i>
|
207 |
+
</button>
|
208 |
+
<button id="user-btn" class="w-8 h-8 rounded-full bg-primary-500 flex items-center justify-center">
|
209 |
+
<i class="fas fa-user text-white"></i>
|
210 |
+
</button>
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
</header>
|
214 |
+
|
215 |
+
<!-- Main Content -->
|
216 |
+
<main class="flex-1 container mx-auto px-4 py-6">
|
217 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
218 |
+
<!-- Left Sidebar -->
|
219 |
+
<div class="lg:col-span-1 space-y-6">
|
220 |
+
<!-- Project Info Card -->
|
221 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-4 border border-gray-200 dark:border-gray-700">
|
222 |
+
<h2 class="text-lg font-semibold mb-4 flex items-center">
|
223 |
+
<i class="fas fa-info-circle mr-2 text-primary-500"></i>
|
224 |
+
Project Information
|
225 |
+
</h2>
|
226 |
+
<div class="space-y-4">
|
227 |
+
<div>
|
228 |
+
<label for="app-name" class="block text-sm font-medium mb-1">App Name</label>
|
229 |
+
<input type="text" id="app-name" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="My Awesome App" value="MyApp">
|
230 |
+
</div>
|
231 |
+
<div class="grid grid-cols-2 gap-4">
|
232 |
+
<div>
|
233 |
+
<label for="app-version" class="block text-sm font-medium mb-1">Version</label>
|
234 |
+
<input type="text" id="app-version" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="1.0.0" value="1.0.0">
|
235 |
+
</div>
|
236 |
+
<div>
|
237 |
+
<label for="app-version-code" class="block text-sm font-medium mb-1">Version Code</label>
|
238 |
+
<input type="number" id="app-version-code" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="1" value="1">
|
239 |
+
</div>
|
240 |
+
</div>
|
241 |
+
<div>
|
242 |
+
<label for="app-package" class="block text-sm font-medium mb-1">Package Name</label>
|
243 |
+
<input type="text" id="app-package" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="com.example.myapp" value="com.example.myapp">
|
244 |
+
</div>
|
245 |
+
<div>
|
246 |
+
<label class="block text-sm font-medium mb-1">App Icon</label>
|
247 |
+
<div class="flex items-center space-x-4">
|
248 |
+
<div class="w-16 h-16 rounded-lg bg-gray-200 dark:bg-gray-600 flex items-center justify-center overflow-hidden border border-gray-300 dark:border-gray-500">
|
249 |
+
<img id="app-icon-preview" src="https://via.placeholder.com/64" alt="App Icon" class="w-full h-full object-cover hidden">
|
250 |
+
<i class="fas fa-mobile-alt text-gray-400 text-2xl" id="app-icon-placeholder"></i>
|
251 |
+
</div>
|
252 |
+
<div class="flex-1">
|
253 |
+
<input type="file" id="app-icon" class="hidden" accept="image/*">
|
254 |
+
<button id="upload-icon-btn" class="px-3 py-1 bg-primary-500 hover:bg-primary-600 text-white rounded-md text-sm transition-colors">
|
255 |
+
<i class="fas fa-upload mr-1"></i>
|
256 |
+
Upload Icon
|
257 |
+
</button>
|
258 |
+
<button id="generate-icon-btn" class="mt-2 px-3 py-1 bg-secondary-500 hover:bg-secondary-600 text-white rounded-md text-sm transition-colors w-full">
|
259 |
+
<i class="fas fa-magic mr-1"></i>
|
260 |
+
Generate with AI
|
261 |
+
</button>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
<div>
|
266 |
+
<label for="app-splash-color" class="block text-sm font-medium mb-1">Splash Screen Color</label>
|
267 |
+
<div class="flex items-center">
|
268 |
+
<input type="color" id="app-splash-color" class="w-8 h-8 rounded border border-gray-300 dark:border-gray-600 cursor-pointer" value="#0ea5e9">
|
269 |
+
<span id="splash-color-value" class="ml-2 text-sm">#0ea5e9</span>
|
270 |
+
</div>
|
271 |
+
</div>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
|
275 |
+
<!-- AI Code Generation -->
|
276 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-4 border border-gray-200 dark:border-gray-700">
|
277 |
+
<h2 class="text-lg font-semibold mb-4 flex items-center">
|
278 |
+
<i class="fas fa-robot mr-2 text-secondary-500"></i>
|
279 |
+
AI Code Generation
|
280 |
+
</h2>
|
281 |
+
<div class="space-y-4">
|
282 |
+
<div>
|
283 |
+
<label for="ai-model" class="block text-sm font-medium mb-1">AI Model</label>
|
284 |
+
<select id="ai-model" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
285 |
+
<option value="deepseek">DeepSeek-V3</option>
|
286 |
+
<option value="chatgpt">ChatGPT-4</option>
|
287 |
+
<option value="gemini">Gemini Pro</option>
|
288 |
+
<option value="qwen">Qwen-72B</option>
|
289 |
+
<option value="claude">Claude 3</option>
|
290 |
+
<option value="llama">Llama 3</option>
|
291 |
+
</select>
|
292 |
+
</div>
|
293 |
+
<div>
|
294 |
+
<label for="ai-prompt" class="block text-sm font-medium mb-1">Describe Your App</label>
|
295 |
+
<textarea id="ai-prompt" rows="3" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="Describe the app you want to create..."></textarea>
|
296 |
+
</div>
|
297 |
+
<div class="grid grid-cols-2 gap-2">
|
298 |
+
<button id="generate-code-btn" class="px-4 py-2 bg-secondary-500 hover:bg-secondary-600 text-white rounded-md flex items-center justify-center transition-colors">
|
299 |
+
<i class="fas fa-magic mr-2"></i>
|
300 |
+
Generate Code
|
301 |
+
</button>
|
302 |
+
<button id="optimize-code-btn" class="px-4 py-2 bg-accent-500 hover:bg-accent-600 text-white rounded-md flex items-center justify-center transition-colors">
|
303 |
+
<i class="fas fa-bolt mr-2"></i>
|
304 |
+
Optimize
|
305 |
+
</button>
|
306 |
+
</div>
|
307 |
+
</div>
|
308 |
+
</div>
|
309 |
+
|
310 |
+
<!-- Templates & Snippets -->
|
311 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-4 border border-gray-200 dark:border-gray-700">
|
312 |
+
<div class="flex items-center justify-between mb-4">
|
313 |
+
<h2 class="text-lg font-semibold flex items-center">
|
314 |
+
<i class="fas fa-layer-group mr-2 text-primary-500"></i>
|
315 |
+
Templates & Snippets
|
316 |
+
</h2>
|
317 |
+
<button id="save-template-btn" class="px-2 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
318 |
+
<i class="fas fa-save mr-1"></i>
|
319 |
+
Save
|
320 |
+
</button>
|
321 |
+
</div>
|
322 |
+
<div class="editor-toolbar flex overflow-x-auto pb-2 space-x-2">
|
323 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="calculator">
|
324 |
+
<i class="fas fa-calculator text-primary-500 text-lg mb-1"></i>
|
325 |
+
Calculator
|
326 |
+
</button>
|
327 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="todo">
|
328 |
+
<i class="fas fa-tasks text-primary-500 text-lg mb-1"></i>
|
329 |
+
To-Do List
|
330 |
+
</button>
|
331 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="weather">
|
332 |
+
<i class="fas fa-cloud-sun text-primary-500 text-lg mb-1"></i>
|
333 |
+
Weather App
|
334 |
+
</button>
|
335 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="news">
|
336 |
+
<i class="fas fa-newspaper text-primary-500 text-lg mb-1"></i>
|
337 |
+
News Reader
|
338 |
+
</button>
|
339 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="chat">
|
340 |
+
<i class="fas fa-comments text-primary-500 text-lg mb-1"></i>
|
341 |
+
Chat App
|
342 |
+
</button>
|
343 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="ecommerce">
|
344 |
+
<i class="fas fa-shopping-cart text-primary-500 text-lg mb-1"></i>
|
345 |
+
E-commerce
|
346 |
+
</button>
|
347 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="login">
|
348 |
+
<i class="fas fa-sign-in-alt text-primary-500 text-lg mb-1"></i>
|
349 |
+
Login Screen
|
350 |
+
</button>
|
351 |
+
<button class="template-btn p-2 border border-gray-200 dark:border-gray-600 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-sm flex flex-col items-center min-w-[70px] transition-colors" data-template="settings">
|
352 |
+
<i class="fas fa-cog text-primary-500 text-lg mb-1"></i>
|
353 |
+
Settings
|
354 |
+
</button>
|
355 |
+
</div>
|
356 |
+
<div class="mt-4">
|
357 |
+
<label for="code-snippets" class="block text-sm font-medium mb-1">Code Snippets</label>
|
358 |
+
<select id="code-snippets" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
359 |
+
<option value="">Select a snippet...</option>
|
360 |
+
<option value="http-request">HTTP Request</option>
|
361 |
+
<option value="local-storage">Local Storage</option>
|
362 |
+
<option value="navigation">Navigation</option>
|
363 |
+
<option value="database">Database</option>
|
364 |
+
<option value="camera">Camera Access</option>
|
365 |
+
<option value="location">Location</option>
|
366 |
+
<option value="notifications">Notifications</option>
|
367 |
+
<option value="animation">Animation</option>
|
368 |
+
</select>
|
369 |
+
</div>
|
370 |
+
</div>
|
371 |
+
</div>
|
372 |
+
|
373 |
+
<!-- Main Editor Area -->
|
374 |
+
<div class="lg:col-span-2 space-y-6">
|
375 |
+
<!-- Code Input -->
|
376 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md border border-gray-200 dark:border-gray-700">
|
377 |
+
<div class="border-b border-gray-200 dark:border-gray-700 px-4 py-3 flex justify-between items-center">
|
378 |
+
<h2 class="text-lg font-semibold flex items-center">
|
379 |
+
<i class="fas fa-code mr-2 text-primary-500"></i>
|
380 |
+
<span id="editor-title">Code Editor</span>
|
381 |
+
<span id="file-name" class="ml-2 text-sm text-gray-500 dark:text-gray-400">(untitled.js)</span>
|
382 |
+
</h2>
|
383 |
+
<div class="flex items-center space-x-2">
|
384 |
+
<div class="dropdown relative">
|
385 |
+
<button id="language-selector" class="px-3 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm flex items-center transition-colors">
|
386 |
+
<span id="selected-language">JavaScript</span>
|
387 |
+
<i class="fas fa-chevron-down ml-2 text-xs"></i>
|
388 |
+
</button>
|
389 |
+
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg z-10 hidden border border-gray-200 dark:border-gray-700">
|
390 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="javascript">
|
391 |
+
<i class="fab fa-js-square text-yellow-500 mr-2"></i> JavaScript
|
392 |
+
</a>
|
393 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="typescript">
|
394 |
+
<i class="fas fa-code text-blue-500 mr-2"></i> TypeScript
|
395 |
+
</a>
|
396 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="python">
|
397 |
+
<i class="fab fa-python text-blue-400 mr-2"></i> Python
|
398 |
+
</a>
|
399 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="java">
|
400 |
+
<i class="fab fa-java text-red-500 mr-2"></i> Java
|
401 |
+
</a>
|
402 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="kotlin">
|
403 |
+
<i class="fas fa-mobile-alt text-purple-500 mr-2"></i> Kotlin
|
404 |
+
</a>
|
405 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="swift">
|
406 |
+
<i class="fab fa-swift text-orange-500 mr-2"></i> Swift
|
407 |
+
</a>
|
408 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="dart">
|
409 |
+
<i class="fas fa-bolt text-blue-300 mr-2"></i> Dart
|
410 |
+
</a>
|
411 |
+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center" data-lang="html">
|
412 |
+
<i class="fab fa-html5 text-orange-500 mr-2"></i> HTML
|
413 |
+
</a>
|
414 |
+
</div>
|
415 |
+
</div>
|
416 |
+
<button id="validate-code-btn" class="px-3 py-1 bg-yellow-500 hover:bg-yellow-600 text-white rounded-md text-sm transition-colors">
|
417 |
+
<i class="fas fa-check-circle mr-1"></i>
|
418 |
+
Validate
|
419 |
+
</button>
|
420 |
+
<button id="reset-code-btn" class="px-3 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
421 |
+
<i class="fas fa-redo mr-1"></i>
|
422 |
+
Reset
|
423 |
+
</button>
|
424 |
+
<button id="new-file-btn" class="px-3 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
425 |
+
<i class="fas fa-file mr-1"></i>
|
426 |
+
New
|
427 |
+
</button>
|
428 |
+
</div>
|
429 |
+
</div>
|
430 |
+
<div class="p-1">
|
431 |
+
<div id="code-editor" class="code-editor w-full h-96 p-4 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700 overflow-auto font-code" contenteditable="true" spellcheck="false" data-gramm="false">// Enter your code here
|
432 |
+
// Example JavaScript code
|
433 |
+
function greet(name) {
|
434 |
+
return `Hello, ${name}!`;
|
435 |
+
}
|
436 |
+
|
437 |
+
console.log(greet("World"));</div>
|
438 |
+
</div>
|
439 |
+
<div class="border-t border-gray-200 dark:border-gray-700 px-4 py-3 flex justify-between items-center">
|
440 |
+
<div class="text-sm text-gray-500 dark:text-gray-400">
|
441 |
+
<span id="line-count">1</span> lines |
|
442 |
+
<span id="char-count">0</span> characters |
|
443 |
+
<span id="file-size">0 KB</span>
|
444 |
+
</div>
|
445 |
+
<div class="flex items-center space-x-2">
|
446 |
+
<button id="format-code-btn" class="px-3 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
447 |
+
<i class="fas fa-indent mr-1"></i>
|
448 |
+
Format
|
449 |
+
</button>
|
450 |
+
<button id="analyze-code-btn" class="px-3 py-1 bg-blue-500 hover:bg-blue-600 text-white rounded-md text-sm transition-colors">
|
451 |
+
<i class="fas fa-search mr-1"></i>
|
452 |
+
Analyze
|
453 |
+
</button>
|
454 |
+
<button id="debug-code-btn" class="px-3 py-1 bg-purple-500 hover:bg-purple-600 text-white rounded-md text-sm transition-colors">
|
455 |
+
<i class="fas fa-bug mr-1"></i>
|
456 |
+
Debug
|
457 |
+
</button>
|
458 |
+
</div>
|
459 |
+
</div>
|
460 |
+
</div>
|
461 |
+
|
462 |
+
<!-- Conversion Options -->
|
463 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-4 border border-gray-200 dark:border-gray-700">
|
464 |
+
<h2 class="text-lg font-semibold mb-4 flex items-center">
|
465 |
+
<i class="fas fa-exchange-alt mr-2 text-primary-500"></i>
|
466 |
+
Conversion & Build Options
|
467 |
+
</h2>
|
468 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
469 |
+
<div>
|
470 |
+
<label for="target-platform" class="block text-sm font-medium mb-1">Target Platform</label>
|
471 |
+
<select id="target-platform" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
472 |
+
<option value="android">Android (APK)</option>
|
473 |
+
<option value="ios">iOS (IPA)</option>
|
474 |
+
<option value="web">Web App (PWA)</option>
|
475 |
+
<option value="windows">Windows</option>
|
476 |
+
<option value="macos">macOS</option>
|
477 |
+
<option value="linux">Linux</option>
|
478 |
+
<option value="cross-platform">Cross-Platform</option>
|
479 |
+
</select>
|
480 |
+
</div>
|
481 |
+
<div>
|
482 |
+
<label for="target-language" class="block text-sm font-medium mb-1">Convert To Language</label>
|
483 |
+
<select id="target-language" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
484 |
+
<option value="original">Keep Original</option>
|
485 |
+
<option value="javascript">JavaScript</option>
|
486 |
+
<option value="typescript">TypeScript</option>
|
487 |
+
<option value="python">Python</option>
|
488 |
+
<option value="java">Java</option>
|
489 |
+
<option value="kotlin">Kotlin</option>
|
490 |
+
<option value="swift">Swift</option>
|
491 |
+
<option value="dart">Dart</option>
|
492 |
+
</select>
|
493 |
+
</div>
|
494 |
+
<div>
|
495 |
+
<label for="build-mode" class="block text-sm font-medium mb-1">Build Mode</label>
|
496 |
+
<select id="build-mode" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
497 |
+
<option value="debug">Debug</option>
|
498 |
+
<option value="release">Release</option>
|
499 |
+
<option value="optimized">Optimized</option>
|
500 |
+
</select>
|
501 |
+
</div>
|
502 |
+
<div>
|
503 |
+
<label for="build-architecture" class="block text-sm font-medium mb-1">Architecture</label>
|
504 |
+
<select id="build-architecture" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
505 |
+
<option value="universal">Universal</option>
|
506 |
+
<option value="arm64">ARM64</option>
|
507 |
+
<option value="x86">x86</option>
|
508 |
+
<option value="x86_64">x86_64</option>
|
509 |
+
</select>
|
510 |
+
</div>
|
511 |
+
</div>
|
512 |
+
<div class="mt-4 flex flex-wrap gap-3">
|
513 |
+
<button id="convert-code-btn" class="px-4 py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md flex items-center transition-colors">
|
514 |
+
<i class="fas fa-code mr-2"></i>
|
515 |
+
Convert Code
|
516 |
+
</button>
|
517 |
+
<div class="relative">
|
518 |
+
<button id="convert-zip-btn" class="px-4 py-2 bg-green-500 hover:bg-green-600 text-white rounded-md flex items-center transition-colors">
|
519 |
+
<i class="fas fa-file-archive mr-2"></i>
|
520 |
+
Convert Project
|
521 |
+
</button>
|
522 |
+
<input type="file" id="zip-file" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer" accept=".zip,.tar.gz,.rar,.7z">
|
523 |
+
</div>
|
524 |
+
<button id="build-apk-btn" class="px-4 py-2 bg-secondary-500 hover:bg-secondary-600 text-white rounded-md flex items-center transition-colors">
|
525 |
+
<i class="fas fa-android mr-2"></i>
|
526 |
+
Build APK
|
527 |
+
</button>
|
528 |
+
<button id="preview-app-btn" class="px-4 py-2 bg-purple-500 hover:bg-purple-600 text-white rounded-md flex items-center transition-colors">
|
529 |
+
<i class="fas fa-eye mr-2"></i>
|
530 |
+
Preview App
|
531 |
+
</button>
|
532 |
+
<button id="export-project-btn" class="px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white rounded-md flex items-center transition-colors">
|
533 |
+
<i class="fas fa-file-export mr-2"></i>
|
534 |
+
Export Project
|
535 |
+
</button>
|
536 |
+
</div>
|
537 |
+
</div>
|
538 |
+
|
539 |
+
<!-- Status and Output -->
|
540 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-4 border border-gray-200 dark:border-gray-700">
|
541 |
+
<div class="flex items-center justify-between mb-4">
|
542 |
+
<h2 class="text-lg font-semibold flex items-center">
|
543 |
+
<i class="fas fa-tasks mr-2 text-primary-500"></i>
|
544 |
+
Conversion Status
|
545 |
+
</h2>
|
546 |
+
<div class="flex items-center space-x-2">
|
547 |
+
<button id="clear-status-btn" class="px-2 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
548 |
+
<i class="fas fa-trash-alt mr-1"></i>
|
549 |
+
Clear
|
550 |
+
</button>
|
551 |
+
<button id="expand-output-btn" class="px-2 py-1 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md text-sm transition-colors">
|
552 |
+
<i class="fas fa-expand mr-1"></i>
|
553 |
+
Expand
|
554 |
+
</button>
|
555 |
+
</div>
|
556 |
+
</div>
|
557 |
+
<div id="status-container" class="space-y-4">
|
558 |
+
<div id="progress-container" class="hidden">
|
559 |
+
<div class="flex justify-between text-sm mb-1">
|
560 |
+
<span id="progress-status">Processing...</span>
|
561 |
+
<span id="progress-percent">0%</span>
|
562 |
+
</div>
|
563 |
+
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2.5">
|
564 |
+
<div id="progress-bar" class="progress-bar bg-primary-500 h-2.5 rounded-full" style="width: 0%"></div>
|
565 |
+
</div>
|
566 |
+
<div class="flex justify-between text-xs text-gray-500 dark:text-gray-400 mt-1">
|
567 |
+
<span id="progress-time">00:00:00</span>
|
568 |
+
<span id="progress-speed">0 KB/s</span>
|
569 |
+
</div>
|
570 |
+
</div>
|
571 |
+
<div id="status-message" class="p-3 bg-blue-50 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded-md text-sm hidden">
|
572 |
+
<i class="fas fa-info-circle mr-2"></i>
|
573 |
+
<span id="status-text">Ready to convert your code</span>
|
574 |
+
</div>
|
575 |
+
<div id="error-message" class="p-3 bg-red-50 dark:bg-red-900 text-red-800 dark:text-red-200 rounded-md text-sm hidden">
|
576 |
+
<i class="fas fa-exclamation-circle mr-2"></i>
|
577 |
+
<span id="error-text">An error occurred during conversion</span>
|
578 |
+
<button id="show-error-details" class="ml-2 text-sm underline">Show details</button>
|
579 |
+
<div id="error-details" class="mt-2 hidden p-2 bg-red-100 dark:bg-red-800 rounded text-xs overflow-auto max-h-32 font-mono"></div>
|
580 |
+
</div>
|
581 |
+
<div id="success-message" class="p-3 bg-green-50 dark:bg-green-900 text-green-800 dark:text-green-200 rounded-md text-sm hidden">
|
582 |
+
<i class="fas fa-check-circle mr-2"></i>
|
583 |
+
<span id="success-text">Conversion successful!</span>
|
584 |
+
<button id="download-apk-btn" class="ml-2 px-2 py-1 bg-green-500 hover:bg-green-600 text-white rounded text-sm transition-colors">
|
585 |
+
<i class="fas fa-download mr-1"></i>
|
586 |
+
Download APK
|
587 |
+
</button>
|
588 |
+
<button id="share-app-btn" class="ml-2 px-2 py-1 bg-blue-500 hover:bg-blue-600 text-white rounded text-sm transition-colors">
|
589 |
+
<i class="fas fa-share-alt mr-1"></i>
|
590 |
+
Share
|
591 |
+
</button>
|
592 |
+
</div>
|
593 |
+
<div id="output-container" class="hidden">
|
594 |
+
<div class="flex justify-between items-center mb-2">
|
595 |
+
<h3 class="font-medium">Output Log</h3>
|
596 |
+
<button id="clear-output-btn" class="text-xs text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
597 |
+
<i class="fas fa-trash-alt mr-1"></i>
|
598 |
+
Clear
|
599 |
+
</button>
|
600 |
+
</div>
|
601 |
+
<div id="output-log" class="bg-gray-50 dark:bg-gray-700 p-3 rounded-md text-xs font-mono overflow-auto max-h-32"></div>
|
602 |
+
</div>
|
603 |
+
<div id="analysis-container" class="hidden">
|
604 |
+
<div class="flex justify-between items-center mb-2">
|
605 |
+
<h3 class="font-medium">Code Analysis</h3>
|
606 |
+
<button id="clear-analysis-btn" class="text-xs text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
607 |
+
<i class="fas fa-trash-alt mr-1"></i>
|
608 |
+
Clear
|
609 |
+
</button>
|
610 |
+
</div>
|
611 |
+
<div id="analysis-results" class="bg-gray-50 dark:bg-gray-700 p-3 rounded-md text-xs overflow-auto max-h-32">
|
612 |
+
<div class="grid grid-cols-1 gap-2">
|
613 |
+
<div class="flex items-start">
|
614 |
+
<div class="flex-shrink-0 h-5 w-5 text-green-500">
|
615 |
+
<i class="fas fa-check-circle"></i>
|
616 |
+
</div>
|
617 |
+
<div class="ml-2">
|
618 |
+
<p class="text-sm font-medium">No syntax errors found</p>
|
619 |
+
</div>
|
620 |
+
</div>
|
621 |
+
<div class="flex items-start">
|
622 |
+
<div class="flex-shrink-0 h-5 w-5 text-yellow-500">
|
623 |
+
<i class="fas fa-exclamation-triangle"></i>
|
624 |
+
</div>
|
625 |
+
<div class="ml-2">
|
626 |
+
<p class="text-sm font-medium">2 potential optimizations available</p>
|
627 |
+
</div>
|
628 |
+
</div>
|
629 |
+
<div class="flex items-start">
|
630 |
+
<div class="flex-shrink-0 h-5 w-5 text-blue-500">
|
631 |
+
<i class="fas fa-info-circle"></i>
|
632 |
+
</div>
|
633 |
+
<div class="ml-2">
|
634 |
+
<p class="text-sm font-medium">Code complexity: Medium (score: 15/100)</p>
|
635 |
+
</div>
|
636 |
+
</div>
|
637 |
+
</div>
|
638 |
+
</div>
|
639 |
+
</div>
|
640 |
+
</div>
|
641 |
+
</div>
|
642 |
+
</div>
|
643 |
+
</div>
|
644 |
+
</main>
|
645 |
+
|
646 |
+
<!-- Floating Action Buttons -->
|
647 |
+
<div class="fixed bottom-6 right-6 space-y-3">
|
648 |
+
<button id="history-btn" class="floating-btn w-12 h-12 bg-primary-500 hover:bg-primary-600 text-white rounded-full flex items-center justify-center shadow-lg transition-colors">
|
649 |
+
<i class="fas fa-history text-xl"></i>
|
650 |
+
</button>
|
651 |
+
<button id="git-push-btn" class="floating-btn w-12 h-12 bg-gray-700 hover:bg-gray-800 text-white rounded-full flex items-center justify-center shadow-lg transition-colors">
|
652 |
+
<i class="fab fa-git-alt text-xl"></i>
|
653 |
+
</button>
|
654 |
+
<button id="terminal-btn" class="floating-btn w-12 h-12 bg-gray-800 hover:bg-gray-900 text-white rounded-full flex items-center justify-center shadow-lg transition-colors">
|
655 |
+
<i class="fas fa-terminal text-xl"></i>
|
656 |
+
</button>
|
657 |
+
<button id="help-btn" class="floating-btn w-12 h-12 bg-blue-500 hover:bg-blue-600 text-white rounded-full flex items-center justify-center shadow-lg transition-colors">
|
658 |
+
<i class="fas fa-question text-xl"></i>
|
659 |
+
</button>
|
660 |
+
</div>
|
661 |
+
|
662 |
+
<!-- Terminal Modal -->
|
663 |
+
<div id="terminal-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
664 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-w-3xl h-[70vh] flex flex-col border border-gray-200 dark:border-gray-700">
|
665 |
+
<div class="border-b border-gray-200 dark:border-gray-700 px-4 py-3 flex justify-between items-center">
|
666 |
+
<h3 class="text-lg font-semibold flex items-center">
|
667 |
+
<i class="fas fa-terminal mr-2 text-primary-500"></i>
|
668 |
+
Terminal
|
669 |
+
</h3>
|
670 |
+
<button id="close-terminal-btn" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
671 |
+
<i class="fas fa-times"></i>
|
672 |
+
</button>
|
673 |
+
</div>
|
674 |
+
<div id="terminal-content" class="flex-1 p-4 bg-black text-green-400 font-mono text-sm overflow-auto">
|
675 |
+
<div class="mb-2">Code2APK Terminal v1.0.0</div>
|
676 |
+
<div class="mb-2">Type 'help' for available commands</div>
|
677 |
+
<div class="flex items-center">
|
678 |
+
<span class="text-green-500 mr-2">$</span>
|
679 |
+
<input id="terminal-input" class="bg-transparent border-none outline-none flex-1 text-green-400" autofocus>
|
680 |
+
</div>
|
681 |
+
</div>
|
682 |
+
</div>
|
683 |
+
</div>
|
684 |
+
|
685 |
+
<!-- Settings Modal -->
|
686 |
+
<div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
687 |
+
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-y-auto border border-gray-200 dark:border-gray-700">
|
688 |
+
<div class="border-b border-gray-200 dark:border-gray-700 px-6 py-4 flex justify-between items-center">
|
689 |
+
<h3 class="text-lg font-semibold">Settings</h3>
|
690 |
+
<button id="close-settings-btn" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
691 |
+
<i class="fas fa-times"></i>
|
692 |
+
</button>
|
693 |
+
</div>
|
694 |
+
<div class="p-6">
|
695 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
696 |
+
<div class="md:col-span-1">
|
697 |
+
<div class="space-y-1">
|
698 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md bg-primary-100 dark:bg-primary-900 text-primary-700 dark:text-primary-200 font-medium" data-tab="appearance">
|
699 |
+
<i class="fas fa-palette mr-2"></i> Appearance
|
700 |
+
</button>
|
701 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md hover:bg-gray-100 dark:hover:bg-gray-700" data-tab="editor">
|
702 |
+
<i class="fas fa-code mr-2"></i> Editor
|
703 |
+
</button>
|
704 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md hover:bg-gray-100 dark:hover:bg-gray-700" data-tab="build">
|
705 |
+
<i class="fas fa-cogs mr-2"></i> Build Settings
|
706 |
+
</button>
|
707 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md hover:bg-gray-100 dark:hover:bg-gray-700" data-tab="ai">
|
708 |
+
<i class="fas fa-robot mr-2"></i> AI Configuration
|
709 |
+
</button>
|
710 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md hover:bg-gray-100 dark:hover:bg-gray-700" data-tab="git">
|
711 |
+
<i class="fab fa-git-alt mr-2"></i> Git Integration
|
712 |
+
</button>
|
713 |
+
<button class="settings-tab-btn w-full px-4 py-2 text-left rounded-md hover:bg-gray-100 dark:hover:bg-gray-700" data-tab="advanced">
|
714 |
+
<i class="fas fa-sliders-h mr-2"></i> Advanced
|
715 |
+
</button>
|
716 |
+
</div>
|
717 |
+
</div>
|
718 |
+
<div class="md:col-span-2">
|
719 |
+
<div id="appearance-tab" class="settings-tab-content space-y-6">
|
720 |
+
<h4 class="font-medium text-lg">Appearance</h4>
|
721 |
+
<div class="space-y-4">
|
722 |
+
<div class="flex items-center justify-between">
|
723 |
+
<span>Dark Mode</span>
|
724 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
725 |
+
<input type="checkbox" id="dark-mode-toggle" class="sr-only peer">
|
726 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-300 dark:peer-focus:ring-primary-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary-600"></div>
|
727 |
+
</label>
|
728 |
+
</div>
|
729 |
+
<div>
|
730 |
+
<label for="app-theme" class="block mb-2">Application Theme</label>
|
731 |
+
<select id="app-theme" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
732 |
+
<option value="default">Default</option>
|
733 |
+
<option value="blue">Blue</option>
|
734 |
+
<option value="indigo">Indigo</option>
|
735 |
+
<option value="purple">Purple</option>
|
736 |
+
<option value="teal">Teal</option>
|
737 |
+
<option value="orange">Orange</option>
|
738 |
+
</select>
|
739 |
+
</div>
|
740 |
+
<div>
|
741 |
+
<label for="ui-density" class="block mb-2">UI Density</label>
|
742 |
+
<select id="ui-density" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
743 |
+
<option value="compact">Compact</option>
|
744 |
+
<option value="normal" selected>Normal</option>
|
745 |
+
<option value="spacious">Spacious</option>
|
746 |
+
</select>
|
747 |
+
</div>
|
748 |
+
<div>
|
749 |
+
<label for="font-family" class="block mb-2">Font Family</label>
|
750 |
+
<select id="font-family" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
751 |
+
<option value="system">System Default</option>
|
752 |
+
<option value="inter">Inter</option>
|
753 |
+
<option value="roboto">Roboto</option>
|
754 |
+
<option value="open-sans">Open Sans</option>
|
755 |
+
<option value="fira-sans">Fira Sans</option>
|
756 |
+
</select>
|
757 |
+
</div>
|
758 |
+
</div>
|
759 |
+
</div>
|
760 |
+
|
761 |
+
<div id="editor-tab" class="settings-tab-content space-y-6 hidden">
|
762 |
+
<h4 class="font-medium text-lg">Editor Settings</h4>
|
763 |
+
<div class="space-y-4">
|
764 |
+
<div>
|
765 |
+
<label for="editor-font-size" class="block mb-2">Font Size</label>
|
766 |
+
<select id="editor-font-size" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
767 |
+
<option value="12">12px</option>
|
768 |
+
<option value="14" selected>14px</option>
|
769 |
+
<option value="16">16px</option>
|
770 |
+
<option value="18">18px</option>
|
771 |
+
<option value="20">20px</option>
|
772 |
+
</select>
|
773 |
+
</div>
|
774 |
+
<div>
|
775 |
+
<label for="editor-theme" class="block mb-2">Editor Theme</label>
|
776 |
+
<select id="editor-theme" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
777 |
+
<option value="light">Light</option>
|
778 |
+
<option value="dark">Dark</option>
|
779 |
+
<option value="solarized">Solarized</option>
|
780 |
+
<option value="monokai">Monokai</option>
|
781 |
+
<option value="dracula">Dracula</option>
|
782 |
+
<option value="github">GitHub</option>
|
783 |
+
</select>
|
784 |
+
</div>
|
785 |
+
<div>
|
786 |
+
<label for="tab-size" class="block mb-2">Tab Size</label>
|
787 |
+
<select id="tab-size" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
788 |
+
<option value="2">2 spaces</option>
|
789 |
+
<option value="4" selected>4 spaces</option>
|
790 |
+
<option value="8">8 spaces</option>
|
791 |
+
<option value="tab">Tab character</option>
|
792 |
+
</select>
|
793 |
+
</div>
|
794 |
+
<div class="flex items-center">
|
795 |
+
<input id="line-numbers" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
796 |
+
<label for="line-numbers" class="ml-2 text-sm">Show line numbers</label>
|
797 |
+
</div>
|
798 |
+
<div class="flex items-center">
|
799 |
+
<input id="auto-close-brackets" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
800 |
+
<label for="auto-close-brackets" class="ml-2 text-sm">Auto-close brackets</label>
|
801 |
+
</div>
|
802 |
+
<div class="flex items-center">
|
803 |
+
<input id="auto-format" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
804 |
+
<label for="auto-format" class="ml-2 text-sm">Auto-format on save</label>
|
805 |
+
</div>
|
806 |
+
</div>
|
807 |
+
</div>
|
808 |
+
|
809 |
+
<div id="build-tab" class="settings-tab-content space-y-6 hidden">
|
810 |
+
<h4 class="font-medium text-lg">Build Settings</h4>
|
811 |
+
<div class="space-y-4">
|
812 |
+
<div>
|
813 |
+
<label for="min-sdk" class="block mb-2">Minimum SDK Version</label>
|
814 |
+
<select id="min-sdk" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
815 |
+
<option value="21">Android 5.0 (Lollipop)</option>
|
816 |
+
<option value="23" selected>Android 6.0 (Marshmallow)</option>
|
817 |
+
<option value="26">Android 8.0 (Oreo)</option>
|
818 |
+
<option value="28">Android 9.0 (Pie)</option>
|
819 |
+
<option value="30">Android 11</option>
|
820 |
+
<option value="31">Android 12</option>
|
821 |
+
</select>
|
822 |
+
</div>
|
823 |
+
<div>
|
824 |
+
<label for="target-sdk" class="block mb-2">Target SDK Version</label>
|
825 |
+
<select id="target-sdk" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
826 |
+
<option value="30">Android 11</option>
|
827 |
+
<option value="31">Android 12</option>
|
828 |
+
<option value="32">Android 12L</option>
|
829 |
+
<option value="33" selected>Android 13</option>
|
830 |
+
<option value="34">Android 14</option>
|
831 |
+
</select>
|
832 |
+
</div>
|
833 |
+
<div>
|
834 |
+
<label class="block mb-2">Permissions</label>
|
835 |
+
<div class="grid grid-cols-2 gap-2">
|
836 |
+
<div class="flex items-center">
|
837 |
+
<input id="perm-internet" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
838 |
+
<label for="perm-internet" class="ml-2 text-sm">Internet</label>
|
839 |
+
</div>
|
840 |
+
<div class="flex items-center">
|
841 |
+
<input id="perm-storage" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
842 |
+
<label for="perm-storage" class="ml-2 text-sm">Storage</label>
|
843 |
+
</div>
|
844 |
+
<div class="flex items-center">
|
845 |
+
<input id="perm-location" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
846 |
+
<label for="perm-location" class="ml-2 text-sm">Location</label>
|
847 |
+
</div>
|
848 |
+
<div class="flex items-center">
|
849 |
+
<input id="perm-camera" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
850 |
+
<label for="perm-camera" class="ml-2 text-sm">Camera</label>
|
851 |
+
</div>
|
852 |
+
<div class="flex items-center">
|
853 |
+
<input id="perm-microphone" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
854 |
+
<label for="perm-microphone" class="ml-2 text-sm">Microphone</label>
|
855 |
+
</div>
|
856 |
+
<div class="flex items-center">
|
857 |
+
<input id="perm-notifications" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
858 |
+
<label for="perm-notifications" class="ml-2 text-sm">Notifications</label>
|
859 |
+
</div>
|
860 |
+
</div>
|
861 |
+
</div>
|
862 |
+
<div>
|
863 |
+
<label for="build-optimization" class="block mb-2">Optimization Level</label>
|
864 |
+
<select id="build-optimization" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
865 |
+
<option value="none">None</option>
|
866 |
+
<option value="basic">Basic</option>
|
867 |
+
<option value="advanced" selected>Advanced</option>
|
868 |
+
<option value="maximum">Maximum</option>
|
869 |
+
</select>
|
870 |
+
</div>
|
871 |
+
<div>
|
872 |
+
<label for="build-timeout" class="block mb-2">Build Timeout (minutes)</label>
|
873 |
+
<input type="number" id="build-timeout" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" min="1" max="60" value="10">
|
874 |
+
</div>
|
875 |
+
</div>
|
876 |
+
</div>
|
877 |
+
|
878 |
+
<div id="ai-tab" class="settings-tab-content space-y-6 hidden">
|
879 |
+
<h4 class="font-medium text-lg">AI Configuration</h4>
|
880 |
+
<div class="space-y-4">
|
881 |
+
<div>
|
882 |
+
<label for="api-key" class="block mb-2">API Key</label>
|
883 |
+
<div class="flex">
|
884 |
+
<input type="password" id="api-key" class="flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-l-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="Enter your API key">
|
885 |
+
<button id="toggle-api-key" class="px-3 py-2 bg-gray-200 dark:bg-gray-600 border border-l-0 border-gray-300 dark:border-gray-600 rounded-r-md">
|
886 |
+
<i class="fas fa-eye"></i>
|
887 |
+
</button>
|
888 |
+
</div>
|
889 |
+
</div>
|
890 |
+
<div>
|
891 |
+
<label for="ai-provider" class="block mb-2">Default AI Provider</label>
|
892 |
+
<select id="ai-provider" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
893 |
+
<option value="openai">OpenAI</option>
|
894 |
+
<option value="anthropic">Anthropic</option>
|
895 |
+
<option value="google">Google</option>
|
896 |
+
<option value="deepseek">DeepSeek</option>
|
897 |
+
<option value="custom">Custom Endpoint</option>
|
898 |
+
</select>
|
899 |
+
</div>
|
900 |
+
<div id="custom-endpoint-container" class="hidden">
|
901 |
+
<label for="custom-endpoint" class="block mb-2">Custom Endpoint</label>
|
902 |
+
<input type="text" id="custom-endpoint" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="https://api.example.com/v1/chat">
|
903 |
+
</div>
|
904 |
+
<div>
|
905 |
+
<label for="ai-model-default" class="block mb-2">Default Model</label>
|
906 |
+
<select id="ai-model-default" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
907 |
+
<option value="gpt-4">GPT-4</option>
|
908 |
+
<option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
|
909 |
+
<option value="claude-3">Claude 3</option>
|
910 |
+
<option value="gemini-pro">Gemini Pro</option>
|
911 |
+
</select>
|
912 |
+
</div>
|
913 |
+
<div>
|
914 |
+
<label for="ai-temperature" class="block mb-2">Creativity (Temperature)</label>
|
915 |
+
<input type="range" id="ai-temperature" min="0" max="100" value="70" class="w-full h-2 bg-gray-200 dark:bg-gray-700 rounded-lg appearance-none cursor-pointer">
|
916 |
+
<div class="flex justify-between text-xs text-gray-500 dark:text-gray-400">
|
917 |
+
<span>Precise</span>
|
918 |
+
<span>Balanced</span>
|
919 |
+
<span>Creative</span>
|
920 |
+
</div>
|
921 |
+
</div>
|
922 |
+
<div>
|
923 |
+
<label for="ai-max-tokens" class="block mb-2">Max Tokens</label>
|
924 |
+
<input type="number" id="ai-max-tokens" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" min="100" max="8000" value="2000">
|
925 |
+
</div>
|
926 |
+
<div class="flex items-center">
|
927 |
+
<input id="ai-code-completion" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
928 |
+
<label for="ai-code-completion" class="ml-2 text-sm">Enable AI Code Completion</label>
|
929 |
+
</div>
|
930 |
+
</div>
|
931 |
+
</div>
|
932 |
+
|
933 |
+
<div id="git-tab" class="settings-tab-content space-y-6 hidden">
|
934 |
+
<h4 class="font-medium text-lg">Git Integration</h4>
|
935 |
+
<div class="space-y-4">
|
936 |
+
<div>
|
937 |
+
<label for="git-username" class="block mb-2">Username</label>
|
938 |
+
<input type="text" id="git-username" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="Your Git username">
|
939 |
+
</div>
|
940 |
+
<div>
|
941 |
+
<label for="git-email" class="block mb-2">Email</label>
|
942 |
+
<input type="email" id="git-email" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="Your Git email">
|
943 |
+
</div>
|
944 |
+
<div>
|
945 |
+
<label for="git-repo" class="block mb-2">Default Repository</label>
|
946 |
+
<input type="text" id="git-repo" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="https://github.com/username/repo.git">
|
947 |
+
</div>
|
948 |
+
<div>
|
949 |
+
<label for="git-branch" class="block mb-2">Default Branch</label>
|
950 |
+
<input type="text" id="git-branch" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="main" value="main">
|
951 |
+
</div>
|
952 |
+
<div class="flex items-center">
|
953 |
+
<input id="git-auto-commit" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
954 |
+
<label for="git-auto-commit" class="ml-2 text-sm">Auto-commit changes</label>
|
955 |
+
</div>
|
956 |
+
<div class="flex items-center">
|
957 |
+
<input id="git-auto-push" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
958 |
+
<label for="git-auto-push" class="ml-2 text-sm">Auto-push to remote</label>
|
959 |
+
</div>
|
960 |
+
</div>
|
961 |
+
</div>
|
962 |
+
|
963 |
+
<div id="advanced-tab" class="settings-tab-content space-y-6 hidden">
|
964 |
+
<h4 class="font-medium text-lg">Advanced Settings</h4>
|
965 |
+
<div class="space-y-4">
|
966 |
+
<div>
|
967 |
+
<label for="compiler-path" class="block mb-2">Compiler Path</label>
|
968 |
+
<input type="text" id="compiler-path" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="/usr/local/bin/compiler">
|
969 |
+
</div>
|
970 |
+
<div>
|
971 |
+
<label for="build-cache" class="block mb-2">Build Cache Directory</label>
|
972 |
+
<input type="text" id="build-cache" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" placeholder="/tmp/code2apk_cache">
|
973 |
+
</div>
|
974 |
+
<div>
|
975 |
+
<label for="max-memory" class="block mb-2">Max Memory (MB)</label>
|
976 |
+
<input type="number" id="max-memory" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" min="512" max="8192" value="2048">
|
977 |
+
</div>
|
978 |
+
<div>
|
979 |
+
<label for="concurrency" class="block mb-2">Concurrency Level</label>
|
980 |
+
<input type="number" id="concurrency" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700" min="1" max="16" value="4">
|
981 |
+
</div>
|
982 |
+
<div class="flex items-center">
|
983 |
+
<input id="enable-analytics" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
984 |
+
<label for="enable-analytics" class="ml-2 text-sm">Send anonymous usage data</label>
|
985 |
+
</div>
|
986 |
+
<div class="flex items-center">
|
987 |
+
<input id="enable-error-reports" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600" checked>
|
988 |
+
<label for="enable-error-reports" class="ml-2 text-sm">Send error reports</label>
|
989 |
+
</div>
|
990 |
+
<div>
|
991 |
+
<label for="log-level" class="block mb-2">Log Level</label>
|
992 |
+
<select id="log-level" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-gray-700">
|
993 |
+
<option value="error">Error</option>
|
994 |
+
<option value="warn">Warning</option>
|
995 |
+
<option value="info" selected>Info</option>
|
996 |
+
<option value="debug">Debug</option>
|
997 |
+
<option value="trace">Trace</option>
|
998 |
+
</select>
|
999 |
+
</div>
|
1000 |
+
</div>
|
1001 |
+
</div>
|
1002 |
+
</div>
|
1003 |
+
</div>
|
1004 |
+
<div class="border-t border-gray-200 dark:border-gray-700 px-6 py-4 flex justify-end">
|
1005 |
+
<button id="cancel-settings-btn" class="px-4 py-2 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-200 rounded-md hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors mr-2">
|
1006 |
+
Cancel
|
1007 |
+
</button>
|
1008 |
+
<button id="save-settings-btn" class="px-4 py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md transition-colors">
|
1009 |
+
Save Settings
|
1010 |
+
</button>
|
1011 |
+
</div>
|
1012 |
+
</div>
|
1013 |
+
</div>
|
1014 |
+
|
1015 |
+
<!-- Preview Modal -->
|
1016 |
+
<div id="preview-modal" class="fixed inset-0 bg-black bg
|
1017 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
Create an app that supports Android and iOS. the app can Convert any code or entire app project file into an APK. Develop the application to include: All software languages support the ability to convert a code to suit another operating system or to another programming language. APK The ability to analyze and develop the entire application code or application project, the ability to program and edit artificial intelligence code, to provide all application tools with artificial intelligence and make them advanced The application includes the following features: 1. Convert code to APK 2. Convert an entire project in ZIP format to APK 3. Multilingual support 4. Convert code to compatibility with other operating systems 5. Software error detection 6. Download APK File Post Transfer 7. Code Analysis and Development 8. Fully AI Code Generation Tools with Artificial Intelligence • Clearer Status Updates: Provide more granular and informative status updates during the conversion process. • Error Handling: Display error messages in a user-friendly format, perhaps using a dedicated component for displaying errors. • Progress Bar: Implement a progress bar to visually show the progress of the APK conversion, especially for ZIP file conversions. • Code Editor Improvements: Enhance the code input area with features like syntax highlighting and line numbering. • Settings/Customization: Allow users to customize APK build settings. • Direct Download: Instead of opening a new tab, initiate the APK download directly from the button click. • Improved Responsiveness: Ensure the application is fully responsive across various screen sizes and devices. • Accessibility: Improve accessibility. • Add More Code Examples. Add code examples. • Confirmation Dialogs: Implement confirmation dialogs. • Analytics: Integrate analytics • Implement a "Reset" Button: To clear the code input area and reset the application state. • Show Error Details: If the conversion fails, provide a way to view detailed error logs or messages from the conversion process. • Add Support for More File Types: Allow users to upload other archive formats like .tar.gz or individual asset files. • Dark Mode Toggle: Integrate a dark mode toggle • Mobile Preview: Add a feature to preview the generated code. • Version Control Integration: Allow users to push code directly to Git repositories. • Add Support for Multiple Languages. Add support for multiple languages for user who don't speak English. • Templates: Provide a set of pre-built templates for common app layouts to help users get started quickly. • Code validation: Add code validation before converting. • API integration: Add integration with external APIs. • Integrating Deepseek, Qwen, ChatGPT, and Gemini (latest versions) into the app to generate code based on description or prompts... • The ability to generate complete code and convert it to an APK • Add a page for showing history Design the user interface and develop the functionality you require. Develop the user interface, format it, and make it beautiful and mobile-friendly • Streamline Input Fields: Improve the layout and appearance of input fields for app name, version, and icon to make them visually appealing. • Revamp Buttons: Implement subtle animations on hover or click to provide visual feedback. • Enhance Code Area: Use a more distinct border and background color to highlight the code input area. • Use Icons for Conversion Options: Use icons to clearly label code conversion and ZIP conversion buttons. • Improve Status Display: Enhance the appearance of the status display with a modern design. • Introduce a Visual Theme Switcher: Include a theme switcher allowing users to customize the appearance (dark mode). • Add a settings page: Add a settings page where the user can configure the app. • Add a confirmation dialog Add a confirmation dialog before converting. • Add a proper progress bar • View the final result of the application Develop the user interface, format it and make it beautiful as you see fit. Add a beautiful and suitable icon for the application. You can add and develop any features or capabilities that you deem suitable for the application
|
2 |
+
Improve and develop the application to become more advanced and efficient
|