-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1539 lines (1346 loc) · 62.3 KB
/
index.html
File metadata and controls
1539 lines (1346 loc) · 62.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="AI Agent Platform - منصة وكيل الذكاء الاصطناعي مع دعم متعدد اللغات وتكامل OpenWebUI">
<title>منصة وكيل الذكاء الاصطناعي - AI Agent Platform</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 40px;
text-align: center;
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.header p {
font-size: 1.2em;
opacity: 0.9;
}
.lang-toggle {
position: absolute;
top: 20px;
left: 20px;
background: rgba(255, 255, 255, 0.2);
border: 2px solid white;
color: white;
padding: 10px 20px;
border-radius: 25px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
}
.lang-toggle:hover {
background: white;
color: #667eea;
}
.lang-toggle:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
}
.skip-to-content {
position: absolute;
left: -9999px;
z-index: 999;
padding: 10px 20px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 5px;
}
.skip-to-content:focus {
left: 20px;
top: 20px;
}
.content {
padding: 40px;
}
.section {
margin-bottom: 40px;
}
.section h2 {
color: #667eea;
font-size: 2em;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 3px solid #667eea;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 30px;
}
.feature-card {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 30px;
border-radius: 15px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.feature-card:focus-within {
outline: 3px solid #667eea;
outline-offset: 3px;
}
.feature-card .icon {
font-size: 3em;
margin-bottom: 15px;
}
.feature-card h3 {
color: #333;
margin-bottom: 10px;
font-size: 1.3em;
}
.feature-card p {
color: #666;
font-size: 0.95em;
}
.workflow {
background: #f8f9fa;
padding: 30px;
border-radius: 15px;
margin-top: 20px;
}
.workflow-steps {
display: flex;
flex-direction: column;
gap: 15px;
}
.workflow-step {
display: flex;
align-items: center;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}
.workflow-step:hover {
transform: translateX(-5px);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}
.step-number {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.5em;
margin-left: 20px;
flex-shrink: 0;
}
.step-content {
flex-grow: 1;
}
.step-content h4 {
color: #667eea;
margin-bottom: 5px;
font-size: 1.2em;
}
.step-content p {
color: #666;
}
.command-box {
background: #2d2d2d;
color: #f8f8f2;
padding: 20px;
border-radius: 10px;
font-family: 'Courier New', monospace;
overflow-x: auto;
margin-top: 15px;
position: relative;
}
.command-box code {
color: #a6e22e;
}
.copy-btn {
position: absolute;
top: 10px;
left: 10px;
background: #667eea;
color: white;
border: none;
padding: 5px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 0.9em;
transition: background 0.3s;
}
.copy-btn:hover {
background: #764ba2;
}
.copy-btn:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
}
.action-buttons {
display: flex;
gap: 15px;
flex-wrap: wrap;
margin-top: 20px;
}
.btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 15px 30px;
border-radius: 10px;
font-size: 1.1em;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
display: inline-block;
font-weight: bold;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.btn:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
}
.btn-secondary {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.btn-success {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.info-box {
background: #e3f2fd;
border-right: 5px solid #2196f3;
padding: 20px;
border-radius: 10px;
margin-top: 20px;
}
.info-box h3 {
color: #1976d2;
margin-bottom: 10px;
}
.info-box ul {
list-style: none;
padding-right: 20px;
}
.info-box ul li {
padding: 8px 0;
color: #424242;
}
.info-box ul li::before {
content: "✓ ";
color: #4caf50;
font-weight: bold;
margin-left: 10px;
}
.footer {
background: #333;
color: white;
text-align: center;
padding: 30px;
}
.footer a {
color: #667eea;
text-decoration: none;
transition: color 0.3s;
}
.footer a:hover {
color: #764ba2;
}
@media (max-width: 768px) {
.header h1 {
font-size: 1.8em;
}
.lang-toggle {
position: static;
margin-bottom: 20px;
}
.feature-grid {
grid-template-columns: 1fr;
}
.workflow-step {
flex-direction: column;
text-align: center;
}
.step-number {
margin: 0 0 15px 0;
}
.action-buttons {
flex-direction: column;
}
.btn {
width: 100%;
}
}
/* English Mode */
body[dir="ltr"] .step-number {
margin-right: 20px;
margin-left: 0;
}
body[dir="ltr"] .workflow-step:hover {
transform: translateX(5px);
}
body[dir="ltr"] .info-box {
border-right: none;
border-left: 5px solid #2196f3;
}
body[dir="ltr"] .info-box ul {
padding-left: 20px;
padding-right: 0;
}
body[dir="ltr"] .info-box ul li::before {
margin-right: 10px;
margin-left: 0;
}
body[dir="ltr"] .copy-btn {
left: auto;
right: 10px;
}
/* Chat Interface Styles */
.chat-container {
background: #f8f9fa;
border-radius: 15px;
padding: 20px;
margin-top: 20px;
}
.model-selector {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
padding: 15px;
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
flex-wrap: wrap;
}
.model-selector label {
font-weight: bold;
color: #667eea;
}
.model-dropdown {
flex: 1;
min-width: 200px;
padding: 10px;
border: 2px solid #667eea;
border-radius: 8px;
font-size: 1em;
background: white;
color: #333;
cursor: pointer;
}
.model-dropdown:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
border-color: #764ba2;
}
.btn-small {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
transition: all 0.3s;
font-weight: bold;
}
.btn-small:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-small:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
}
.status-indicator {
font-size: 0.9em;
padding: 5px 15px;
border-radius: 20px;
background: #f0f0f0;
font-weight: bold;
}
.status-indicator.connected {
background: #d4edda;
color: #155724;
}
.status-indicator.error {
background: #f8d7da;
color: #721c24;
}
.chat-messages {
background: white;
border-radius: 10px;
padding: 20px;
min-height: 400px;
max-height: 600px;
overflow-y: auto;
margin-bottom: 20px;
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}
.message {
margin-bottom: 15px;
padding: 12px 16px;
border-radius: 10px;
max-width: 80%;
word-wrap: break-word;
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.user {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
margin-right: auto;
border-bottom-right-radius: 3px;
}
.message.assistant {
background: #e9ecef;
color: #333;
margin-left: auto;
border-bottom-left-radius: 3px;
}
.message.system-message {
background: #fff3cd;
color: #856404;
text-align: center;
max-width: 100%;
border: 1px solid #ffeaa7;
}
.message.error-message {
background: #f8d7da;
color: #721c24;
max-width: 100%;
border: 1px solid #f5c6cb;
}
.message-timestamp {
font-size: 0.75em;
opacity: 0.7;
margin-top: 5px;
}
.chat-input-container {
display: flex;
gap: 10px;
align-items: flex-end;
}
.chat-input {
flex: 1;
padding: 12px;
border: 2px solid #667eea;
border-radius: 10px;
font-size: 1em;
font-family: inherit;
resize: vertical;
min-height: 60px;
}
.chat-input:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
border-color: #764ba2;
}
.chat-input:focus {
outline: none;
border-color: #764ba2;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.btn-send {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
border: none;
padding: 12px 30px;
border-radius: 10px;
font-size: 1em;
cursor: pointer;
transition: all 0.3s;
font-weight: bold;
white-space: nowrap;
}
.btn-send:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}
.btn-send:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
}
.btn-send:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.api-config {
margin-top: 20px;
background: white;
border-radius: 10px;
padding: 15px;
}
.api-config details {
cursor: pointer;
}
.api-config summary {
font-weight: bold;
color: #667eea;
padding: 10px;
user-select: none;
}
.api-settings-content {
padding: 15px;
display: flex;
flex-direction: column;
gap: 10px;
}
.api-input {
padding: 10px;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 1em;
width: 100%;
box-sizing: border-box;
}
.api-input:focus {
outline: 3px solid #FFD700;
outline-offset: 2px;
border-color: #764ba2;
}
.typing-indicator {
display: flex;
gap: 5px;
padding: 15px;
}
.typing-indicator span {
width: 8px;
height: 8px;
background: #667eea;
border-radius: 50%;
animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typing {
0%, 60%, 100% {
transform: translateY(0);
}
30% {
transform: translateY(-10px);
}
}
body[dir="ltr"] .message.user {
margin-left: auto;
margin-right: 0;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 3px;
}
body[dir="ltr"] .message.assistant {
margin-right: auto;
margin-left: 0;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 3px;
}
@media (max-width: 768px) {
.model-selector {
flex-direction: column;
align-items: stretch;
}
.model-dropdown {
width: 100%;
}
.chat-input-container {
flex-direction: column;
}
.btn-send {
width: 100%;
}
.message {
max-width: 90%;
}
}
</style>
</head>
<body>
<a href="#main-content" class="skip-to-content">Skip to main content / الانتقال إلى المحتوى الرئيسي</a>
<button class="lang-toggle" onclick="toggleLanguage()" aria-label="Toggle language between Arabic and English">English / عربي</button>
<div class="container">
<header class="header" role="banner">
<h1 id="title">منصة وكيل الذكاء الاصطناعي</h1>
<p id="subtitle">بنية تحتية متقدمة لبناء ونشر وإدارة وكلاء الذكاء الاصطناعي</p>
</header>
<main id="main-content" class="content" role="main">
<!-- Overview Section -->
<div class="section">
<h2 id="overview-title">نظرة عامة على المشروع</h2>
<p id="overview-text">
منصة وكيل الذكاء الاصطناعي هي منصة شاملة توفر البنية التحتية والأدوات اللازمة لبناء ونشر وإدارة وكلاء الذكاء الاصطناعي بكفاءة عالية. تتضمن المنصة نظام إدارة دورة حياة المشروع بشكل تلقائي مع أدوات متقدمة للأرشفة والتنظيف.
</p>
</div>
<!-- Features Section -->
<section class="section" aria-labelledby="features-title">
<h2 id="features-title">الميزات الرئيسية</h2>
<div class="feature-grid" role="list">
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Robot icon">🤖</div>
<h3 id="feature1-title">إدارة الوكلاء</h3>
<p id="feature1-desc">بناء ونشر وكلاء ذكاء اصطناعي متعددة مع إدارة كاملة لدورة حياتهم</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Tools icon">🔧</div>
<h3 id="feature2-title">أدوات متقدمة</h3>
<p id="feature2-desc">مجموعة شاملة من الأدوات لتسهيل التطوير والنشر والصيانة</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Package icon">📦</div>
<h3 id="feature3-title">الأرشفة التلقائية</h3>
<p id="feature3-desc">نظام تلقائي لأرشفة حالة المشروع وحفظ السجلات</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Security lock icon">🔒</div>
<h3 id="feature4-title">الأمان</h3>
<p id="feature4-desc">اتباع أفضل ممارسات الأمان مع استبعاد الملفات الحساسة</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Chart icon">📊</div>
<h3 id="feature5-title">التقارير الشاملة</h3>
<p id="feature5-desc">توليد تقارير مفصلة عن حالة المشروع والعمليات المنفذة</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Globe icon">🌐</div>
<h3 id="feature6-title">دعم متعدد اللغات</h3>
<p id="feature6-desc">واجهة وتوثيق باللغتين العربية والإنجليزية</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Robot icon">🤖</div>
<h3 id="feature7-title">تكامل OpenWebUI</h3>
<p id="feature7-desc">واجهة ويب قوية للتفاعل مع نماذج الذكاء الاصطناعي</p>
</article>
<article class="feature-card" role="listitem" tabindex="0">
<div class="icon" role="img" aria-label="Rocket icon">🚀</div>
<h3 id="feature8-title">نشر سهل على VPS</h3>
<p id="feature8-desc">أدوات تلقائية لنشر المشروع على الخوادم الافتراضية</p>
</article>
</div>
</section>
<!-- Workflow Section -->
<div class="section">
<h2 id="workflow-title">سير عمل الإنهاء</h2>
<div class="workflow">
<div class="workflow-steps">
<div class="workflow-step">
<div class="step-number">1</div>
<div class="step-content">
<h4 id="step1-title">فحص حالة المشروع</h4>
<p id="step1-desc">التحقق من وجود التوثيق والهيكل الصحيح للمشروع</p>
</div>
</div>
<div class="workflow-step">
<div class="step-number">2</div>
<div class="step-content">
<h4 id="step2-title">التحقق من المستودع</h4>
<p id="step2-desc">فحص حالة Git والتأكد من عدم وجود تغييرات غير محفوظة</p>
</div>
</div>
<div class="workflow-step">
<div class="step-number">3</div>
<div class="step-content">
<h4 id="step3-title">أرشفة الملفات</h4>
<p id="step3-desc">إنشاء نسخة احتياطية مؤرشفة مع استبعاد الملفات الحساسة</p>
</div>
</div>
<div class="workflow-step">
<div class="step-number">4</div>
<div class="step-content">
<h4 id="step4-title">توليد التقرير</h4>
<p id="step4-desc">إنشاء تقرير شامل عن حالة المشروع النهائية</p>
</div>
</div>
<div class="workflow-step">
<div class="step-number">5</div>
<div class="step-content">
<h4 id="step5-title">تنظيف الموارد</h4>
<p id="step5-desc">إزالة الملفات المؤقتة والذاكرة المخزنة غير الضرورية</p>
</div>
</div>
<div class="workflow-step">
<div class="step-number">6</div>
<div class="step-content">
<h4 id="step6-title">التحقق النهائي</h4>
<p id="step6-desc">التأكد من إتمام جميع الخطوات بنجاح</p>
</div>
</div>
</div>
</div>
</div>
<!-- OpenWebUI Section -->
<div class="section">
<h2 id="openwebui-title">تكامل OpenWebUI</h2>
<p id="openwebui-text">
OpenWebUI هي واجهة ويب قوية مفتوحة المصدر للتفاعل مع نماذج الذكاء الاصطناعي الكبيرة مثل Ollama. توفر المنصة أدوات كاملة لتثبيت وإدارة OpenWebUI على خادمك.
</p>
<h3 id="openwebui-install-title" style="color: #667eea; margin-top: 20px;">تثبيت OpenWebUI</h3>
<div class="command-box">
<button class="copy-btn" onclick="copyCommand('cmd-openwebui1')" aria-label="Copy OpenWebUI installation command">نسخ</button>
<code id="cmd-openwebui1"># التثبيت التفاعلي
./setup-openwebui.sh
# أو التثبيت التلقائي
./setup-openwebui.sh install</code>
</div>
<h3 id="openwebui-manage-title" style="color: #667eea; margin-top: 20px;">إدارة OpenWebUI</h3>
<div class="command-box">
<button class="copy-btn" onclick="copyCommand('cmd-openwebui2')" aria-label="Copy OpenWebUI management commands">نسخ</button>
<code id="cmd-openwebui2"># عرض الحالة
./setup-openwebui.sh status
# عرض السجلات
./setup-openwebui.sh logs
# إعادة التشغيل
./setup-openwebui.sh restart
# أو استخدم القائمة الذكية
./smart-deploy.sh</code>
</div>
<h3 id="openwebui-access-title" style="color: #667eea; margin-top: 20px;">الوصول إلى OpenWebUI</h3>
<div class="info-box">
<h3 id="openwebui-access-subtitle">بعد التثبيت، يمكنك الوصول إلى OpenWebUI عبر:</h3>
<ul>
<li id="openwebui-access1">http://your-vps-ip:3000</li>
<li id="openwebui-access2">أو عبر النطاق الخاص بك إذا تم إعداد Nginx</li>
<li id="openwebui-access3">إنشاء حساب مستخدم عند الدخول الأول</li>
<li id="openwebui-access4">البدء في المحادثة مع نماذج الذكاء الاصطناعي</li>
</ul>
</div>
</div>
<!-- Usage Section -->
<div class="section">
<h2 id="usage-title">كيفية الاستخدام</h2>
<h3 id="interactive-title" style="color: #667eea; margin-top: 20px;">الوضع التفاعلي</h3>
<div class="command-box">
<button class="copy-btn" onclick="copyCommand('cmd1')" aria-label="Copy interactive mode command">نسخ</button>
<code id="cmd1">./finalize_project.sh</code>
</div>
<h3 id="directive-title" style="color: #667eea; margin-top: 20px;">التنفيذ التلقائي</h3>
<div class="command-box">
<button class="copy-btn" onclick="copyCommand('cmd2')" aria-label="Copy automatic execution command">نسخ</button>
<code id="cmd2">./directive_finalize.sh</code>
</div>
<h3 id="advanced-title" style="color: #667eea; margin-top: 20px;">خيارات متقدمة</h3>
<div class="command-box">
<button class="copy-btn" onclick="copyCommand('cmd3')" aria-label="Copy advanced options commands">نسخ</button>
<code id="cmd3"># إظهار المساعدة
./finalize_project.sh --help
# الوضع القسري (المتابعة مع التحذيرات)
./finalize_project.sh --force
# بدون تأكيد
./finalize_project.sh --no-confirmation
# تلقائي بالكامل
./finalize_project.sh --force --no-confirmation</code>
</div>
</div>
<!-- Benefits Section -->
<div class="section">
<h2 id="benefits-title">الفوائد</h2>
<div class="info-box">
<h3 id="benefits-subtitle">لماذا تستخدم هذه المنصة؟</h3>
<ul>
<li id="benefit1">أتمتة كاملة لعملية إنهاء المشروع</li>
<li id="benefit2">حفظ آمن للسجلات والتاريخ</li>
<li id="benefit3">تنظيف تلقائي للموارد المؤقتة</li>
<li id="benefit4">تقارير شاملة عن حالة المشروع</li>
<li id="benefit5">دعم متعدد الأوضاع (تفاعلي، قسري، تلقائي)</li>
<li id="benefit6">استبعاد ذكي للملفات الحساسة</li>
<li id="benefit7">واجهة سهلة الاستخدام بلغتين</li>
<li id="benefit8">توافق مع معايير الأمان OWASP</li>
</ul>
</div>
</div>
<!-- Interactive Chat Section -->
<section class="section" aria-labelledby="chat-title">
<h2 id="chat-title">💬 تواصل مع النماذج مباشرة</h2>
<p id="chat-subtitle">تفاعل مع نماذج الذكاء الاصطناعي بشكل مباشر من خلال هذه الواجهة</p>
<div class="chat-container" role="region" aria-label="Chat interface">
<div class="model-selector" role="toolbar" aria-label="Model selection and connection controls">
<label for="model-select" id="model-label">اختر النموذج:</label>
<select id="model-select" class="model-dropdown" aria-label="Select AI model">
<option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
<option value="gpt-4">GPT-4</option>
<option value="claude-3">Claude 3</option>
<option value="llama-3">LLaMA 3</option>
<option value="qwen-arabic">Qwen Arabic</option>
<option value="arabert">AraBERT</option>
<option value="mistral">Mistral</option>
<option value="deepseek">DeepSeek Coder</option>
</select>
<button class="btn-small" onclick="connectToModel()" id="connect-btn" aria-label="Connect to selected model">اتصل</button>
<span id="status-indicator" class="status-indicator" role="status" aria-live="polite">⚫ غير متصل</span>
</div>
<div class="chat-messages" id="chat-messages" role="log" aria-live="polite" aria-atomic="false" aria-label="Chat messages">
<div class="system-message">
<p id="welcome-msg">مرحباً! اختر نموذج الذكاء الاصطناعي واضغط "اتصل" للبدء في المحادثة.</p>
</div>
</div>
<form class="chat-input-container" onsubmit="event.preventDefault(); sendMessage();" aria-label="Send message form">
<textarea
id="chat-input"
class="chat-input"
placeholder="اكتب رسالتك هنا..."
rows="3"
onkeydown="handleChatKeydown(event)"
aria-label="Type your message here"
aria-required="true"
></textarea>
<button type="submit" class="btn-send" id="send-btn" aria-label="Send message">
<span>إرسال 📤</span>
</button>
</form>
<div class="api-config" id="api-config" role="region" aria-label="API Configuration Settings">
<details>
<summary id="api-settings-title" aria-label="API Settings - Click to expand">⚙️ إعدادات API</summary>
<div class="api-settings-content">
<label for="api-endpoint" id="api-endpoint-label">نقطة نهاية API:</label>
<input type="text" id="api-endpoint" class="api-input"
value="http://localhost:8000/api/process"
placeholder="http://localhost:8000/api/process"
aria-describedby="api-endpoint-label">
<label for="api-key" id="api-key-label">مفتاح API (اختياري):</label>
<input type="password" id="api-key" class="api-input"
placeholder="أدخل مفتاح API إذا كان مطلوباً"
aria-describedby="api-key-label">
<button class="btn-small" onclick="saveApiSettings()" id="save-settings-btn" aria-label="Save API settings">حفظ الإعدادات</button>
</div>
</details>
</div>
</div>
</section>
<!-- Quick Actions -->
<section class="section" aria-labelledby="actions-title">
<h2 id="actions-title">إجراءات سريعة</h2>
<nav class="action-buttons" aria-label="Quick actions">
<button class="btn" onclick="window.open('https://github.com/wasalstor-web/AI-Agent-Platform', '_blank')" aria-label="Open GitHub repository in new tab">
<span id="btn-repo">📂 المستودع على GitHub</span>
</button>
<button class="btn btn-secondary" onclick="alert('لتنفيذ السكريبت، قم بتشغيله من سطر الأوامر: ./finalize_project.sh')" aria-label="Show finalize script instructions">
<span id="btn-run">▶️ تشغيل الإنهاء</span>
</button>
<button class="btn btn-success" onclick="downloadDocs()" aria-label="Download documentation file">
<span id="btn-docs">📄 تحميل التوثيق</span>
</button>
</nav>
</section>
</main>