Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.core
Commits
a468149b
Commit
a468149b
authored
May 10, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Use sample data from ERP5 itself
This makes eventual reuses for testing and demostration easy.
parent
dae31ee2
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
254 additions
and
6 deletions
+254
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
...odule/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
+5
-4
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
...dule/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
+2
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema.xml
...al_skins/slapos_hal_json_style/sample-software-schema.xml
+26
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo.xml
...apos_hal_json_style/sample-software-schema/simpledemo.xml
+26
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.json
...oftware-schema/simpledemo/instance-input-schema.json.json
+88
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.xml
...software-schema/simpledemo/instance-input-schema.json.xml
+28
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.json.json
.../sample-software-schema/simpledemo/software.cfg.json.json
+22
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.json.xml
...e/sample-software-schema/simpledemo/software.cfg.json.xml
+28
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.txt
..._style/sample-software-schema/simpledemo/software.cfg.txt
+1
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.xml
..._style/sample-software-schema/simpledemo/software.cfg.xml
+28
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.js
View file @
a468149b
...
...
@@ -76,8 +76,9 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
getDeclaredGadget
(
'
form_view
'
)
]);
gadget
.
getDeclaredGadget
(
'
form_view
'
),
gadget
.
getSetting
(
"
hateoas_url
"
)
]);
})
.
push
(
function
(
result
)
{
var
parameter_hash
,
...
...
@@ -85,9 +86,9 @@
default_url
;
if
(
options
.
url_string
===
""
)
{
default_url
=
"
https://lab.nexedi.com/rafael/testing-slapos-schemas/raw/master/software/simpledemo/software.cfg
"
default_url
=
result
[
1
]
+
"
sample-software-schema/simpledemo/software.cfg
"
;
}
else
{
default_url
=
options
.
url_string
default_url
=
options
.
url_string
;
}
if
(
options
.
parameter_output
===
undefined
)
{
parameter_hash
=
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
);
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_test_parameter_form_js.xml
View file @
a468149b
...
...
@@ -277,7 +277,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1000.359
1.30719.64324
</string>
</value>
<value>
<string>
1000.359
2.26006.62702
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -295,7 +295,7 @@
</tuple>
<state>
<tuple>
<float>
165
1847543.75
</float>
<float>
165
2201764.17
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema.xml
0 → 100644
View file @
a468149b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sample-software-schema
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo.xml
0 → 100644
View file @
a468149b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
simpledemo
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.json
0 → 100644
View file @
a468149b
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"description"
:
"Sample paremeters for a Simple Demo"
,
"additionalProperties"
:
false
,
"properties"
:
{
"simple-string"
:
{
"title"
:
"Example of Simple String"
,
"description"
:
"Example of Simple String"
,
"type"
:
"string"
,
"default"
:
"Simple string "
},
"simple-string-with-enum"
:
{
"title"
:
"Example of Simple String with enum"
,
"description"
:
"Example of Simple String with enum"
,
"type"
:
"string"
,
"enum"
:
[
"simple string A"
,
"simple string B"
,
"simple string C"
],
"default"
:
"simple string A"
},
"simple-integer"
:
{
"title"
:
"Example of Simple Integer"
,
"description"
:
"Example of Simple Integer"
,
"type"
:
"integer"
,
"default"
:
1
},
"simple-integer-with-enum"
:
{
"title"
:
"Example of Simple Integer with enum"
,
"description"
:
"Example of Simple Integer with enum"
,
"type"
:
"integer"
,
"default"
:
1
,
"enum"
:
[
1
,
2
,
3
,
5
,
7
,
11
,
13
,
17
]
},
"simple-numeric-integer"
:
{
"title"
:
"Example of Simple Numeric as integer"
,
"description"
:
"Example of Simple Numeric as Interger"
,
"type"
:
"number"
,
"default"
:
1.0
},
"simple-numeric-integer-enum"
:
{
"title"
:
"Example of Simple Numeric as integer"
,
"description"
:
"Example of Simple Numeric as Interger"
,
"type"
:
"number"
,
"default"
:
1.0
,
"enum"
:
[
1.0
,
2.0
,
3.0
,
5.0
,
7.0
,
11.0
,
13.0
,
17.0
]
},
"simple-numeric-float"
:
{
"title"
:
"Example of Simple Numeric as float"
,
"description"
:
"Example of Simple Numeric as float"
,
"type"
:
"number"
,
"default"
:
1.5
},
"simple-numeric-float-enum"
:
{
"title"
:
"Example of Simple Numeric as float"
,
"description"
:
"Example of Simple Numeric as float"
,
"type"
:
"number"
,
"default"
:
1.5
,
"enum"
:
[
0.25
,
0.75
,
1.25
,
1.5
]
}
}
}
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.xml
0 → 100644
View file @
a468149b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
instance-input-schema.json
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/x-json
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.json.json
0 → 100644
View file @
a468149b
{
"name"
:
"Simple Demo"
,
"description"
:
"Demo Simple"
,
"serialisation"
:
"xml"
,
"software-type"
:
{
"default"
:
{
"title"
:
"Default"
,
"description"
:
"Default"
,
"request"
:
"instance-input-schema.json"
,
"response"
:
"instance-output-schema.json"
,
"index"
:
0
},
"jsondefault"
:
{
"title"
:
"JSON in XML"
,
"serialisation"
:
"json-in-xml"
,
"description"
:
"Default"
,
"request"
:
"instance-input-schema.json"
,
"response"
:
"instance-output-schema.json"
,
"index"
:
1
}
}
}
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.json.xml
0 → 100644
View file @
a468149b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
software.cfg.json
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/x-json
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.txt
0 → 100644
View file @
a468149b
# Required to mimic software releases
\ No newline at end of file
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/software.cfg.xml
0 → 100644
View file @
a468149b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
software.cfg
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/plain
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment