From 756623ee7ee44568bde31136d07af6e6b63bd436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=BB=D0=B0=D0=B2=D1=80=D0=B5=D0=B4=20=7C=20Glavred?= Date: Fri, 21 Aug 2020 14:05:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BE=D1=82=20=D0=93=D0=BB=D0=B0=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=20=D0=93=D0=B8=D1=82=D0=96=D0=A1=20|=20Chang?= =?UTF-8?q?es=20of=20GitJS=20Glavred?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0000 | 1 + модули|modules | 5 +++++ пуск|run.js | 22 ++++++++++++++-------- 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 модули|modules diff --git a/0000 b/0000 index 4576a06..ed3c255 100644 --- a/0000 +++ b/0000 @@ -2,5 +2,6 @@ 1.0.0 https://git.opengamestudio.org/mahjong/mahjong +/модули|modules x /пуск|run.js /пуск|run.череда \ No newline at end of file diff --git a/модули|modules b/модули|modules new file mode 100644 index 0000000..06b8bda --- /dev/null +++ b/модули|modules @@ -0,0 +1,5 @@ +https://bitbucket.org/gitjs/jquery/raw/3.5.1/0000 +https://bitbucket.org/gitjs/uikit/raw/3.2.0/0000 +#https://git.opengamestudio.org/mahjong/threejs/raw/tag/r119/0000 +https://git.opengamestudio.org/mahjong/threejs/raw/branch/master/0000 +https://git.opengamestudio.org/mahjong/mahjong-osnova-base/raw/branch/master/0000 \ No newline at end of file diff --git a/пуск|run.js b/пуск|run.js index 6cd9e75..a2ee48b 100644 --- a/пуск|run.js +++ b/пуск|run.js @@ -1,11 +1,5 @@ -const УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА = [ - "https://bitbucket.org/gitjs/jquery/raw/3.5.1/0000", - "https://bitbucket.org/gitjs/uikit/raw/3.2.0/0000", - //"https://git.opengamestudio.org/mahjong/threejs/raw/tag/r119/0000", - "https://git.opengamestudio.org/mahjong/threejs/raw/branch/master/0000", - "https://git.opengamestudio.org/mahjong/mahjong-osnova-base/raw/branch/master/0000", -]; +const ИМЯ = "Маджонг | Mahjong"; // // // // @@ -13,7 +7,19 @@ const УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА = [ ЗагрузитьБиблиотекиМаджонга = мир => { - var указатели = УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА; + var указатели = []; + var модуль = мир.модули.модульПоИмени(ИМЯ); + var содержимое = модуль.содержимое["/модули|modules"]; + var строки = содержимое.split(/\n/); + for (var номер in строки) + { + var строка = строки[номер]; + if (!строка.startsWith("#")) + { + указатели.push(строка); + } + } + var сообщение = "Загрузка библиотек Маджонга | Loading Mahjong libraries"; console.debug(сообщение, указатели);