Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 45 additions & 9 deletions Doc/asset_routes.ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
المجلد الذي ستُبنى فيه النسخة الرقمية. فأثناء التطوير تُتسخدم الملفات مباشرة من مكانها ضمن المكتبة
بينما بعد البناء تبحث مـنصة_ويب عن هذه الملفات ضمن مسار مختلف خاص بالنسخة الرقمية.


### دالة هات_مسارات_الموارد_لوحدات (getAssetsRoutesFromModules)

<div dir=rtl>
Expand All @@ -100,12 +99,11 @@
```
func getAssetsRoutesFromModules (
modulesRef: ref[Core.Basic.TiObject]
): Array[StaticRoute];
): Array[StaticRoute]
```

تجلب معلومات مسارات الموارد المعرفة ضمن الوحدات المشار إليها.


### الصنف مـسار_سواكن (StaticRoute)

<div dir=rtl>
Expand All @@ -130,12 +128,50 @@ class StaticRoute {

يحتوي هذا الصنف على معلومات حول مسار موارد محدد.

`مسار_الخادم` (`uri`) مسار الموارد على خادم HTTP، أي المسار الذي يمكن من خلاله الوصول إلى الموارد
عبر طلب HTTP.
#### مسار_الخادم (uri)

<div dir=rtl>

```
عرف مسار_الخادم: نـص؛
```

</div>

```
def uri: String
```

مسار الموارد على خادم HTTP، أي المسار الذي يمكن من خلاله الوصول إلى الموارد عبر طلب HTTP.

#### مسار_المصدر (srcPath)

<div dir=rtl>

```
عرف مسار_المصدر: نـص؛
```

`مسار_المصدر` (`srcPath`) المسار المصدري لهذه الموارد في نظام الملفات. هذا المسار هو المسار الذي
يستخدم عند تشغيل الخادم مباشرة دون بناء مسبق. يشير هذا في العادة إلى مكان الموارد ضمن الشفرة
المصدرية.
</div>

`مسار_البناء` (`buildPath`) المسار في نظام الملفات الذي سيستخدم عند إنشاء نسخة رقمية من المشروع.
```
def srcPath: String
```

المسار المصدري لهذه الموارد في نظام الملفات. هذا المسار هو المسار الذي يستخدم عند تشغيل الخادم مباشرة دون بناء مسبق. يشير هذا في العادة إلى مكان الموارد ضمن الشفرة المصدرية.

#### مسار_البناء (buildPath)

<div dir=rtl>

```
عرف مسار_البناء: نـص؛
```

</div>

```
def buildPath: String
```

المسار في نظام الملفات الذي سيستخدم عند إنشاء نسخة رقمية من المشروع.
31 changes: 21 additions & 10 deletions Doc/asset_routes.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,16 @@ copied to the `Images/` folder within the build directory, i.e., the directory w
will be built. During development, the files are used directly from their location within the library,
while after building, WebPlatform looks for these files in a different path specific to the binary version.


### Function getAssetsRoutesFromModules

```
func getAssetsRoutesFromModules (
modulesRef: ref[Core.Basic.TiObject]
): Array[StaticRoute];
): Array[StaticRoute]
```

Retrieves information about resource routes defined within the referenced modules.


### Class StaticRoute

```
Expand All @@ -79,13 +77,26 @@ class StaticRoute {

This class contains information about a specific resources route.

`uri` is the resource path on the HTTP server, i.e., the path through which resources can be
accessed via an HTTP request.
#### uri

`srcPath` is the source path of these resources in the file system. This path is used when
running the server directly without prior building. It typically points to the location of
the resources within the source code.
```
def uri: String
```

`buildPath` is the path in the file system that will be used when creating a digital version
of the project.
The resource path on the HTTP server, i.e., the path through which resources can be accessed via an HTTP request.

#### srcPath

```
def srcPath: String
```

The source path of these resources in the file system. This path is used when running the server directly without prior building. It typically points to the location of the resources within the source code.

#### buildPath

```
def buildPath: String
```

The path in the file system that will be used when creating a digital version of the project.
Loading