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
Paul Graydon
slapos.core
Commits
2773c6aa
Commit
2773c6aa
authored
Mar 07, 2024
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: Drop unused methods from the gadget.
parent
124b1153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_erp5_page_slap_load_schema.js.js
...kins/slapos_cloud/gadget_erp5_page_slap_load_schema.js.js
+0
-25
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/gadget_erp5_page_slap_load_schema.js.js
View file @
2773c6aa
...
...
@@ -30,13 +30,6 @@
}
rJS
(
window
)
.
declareMethod
(
"
getBaseUrl
"
,
function
(
url
)
{
var
base_url
,
url_uri
=
URI
(
url
);
base_url
=
url_uri
.
path
().
split
(
"
/
"
);
base_url
.
pop
();
base_url
=
url
.
split
(
url_uri
.
path
())[
0
]
+
base_url
.
join
(
"
/
"
);
return
base_url
;
})
.
declareMethod
(
"
loadJSONSchema
"
,
function
(
url
,
serialisation
)
{
var
meta_schema_url
=
"
slapos_load_meta_schema.json
"
;
...
...
@@ -79,23 +72,5 @@
return
software_json
;
});
});
})
.
declareMethod
(
"
validateJSON
"
,
function
(
base_url
,
schema_url
,
generated_json
)
{
var
parameter_schema_url
=
schema_url
;
if
(
URI
(
parameter_schema_url
).
protocol
()
===
""
)
{
if
(
base_url
!==
undefined
)
{
parameter_schema_url
=
base_url
+
"
/
"
+
parameter_schema_url
;
}
}
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
parameter_schema_url
);
})
.
push
(
function
(
schema
)
{
return
new
Validator
(
schema
,
'
7
'
,
false
).
validate
(
generated_json
);
});
});
}(
window
,
rJS
,
RSVP
,
btoa
,
URI
,
Validator
,
jIO
,
JSON
,
$RefParser
));
\ No newline at end of file
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