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
Léo-Paul Géneau
slapos.core
Commits
6ac251db
Commit
6ac251db
authored
Jun 13, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instance page created
parent
6ade1e25
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
233 additions
and
109 deletions
+233
-109
vifib/index.html
vifib/index.html
+64
-6
vifib/static/js/core.js
vifib/static/js/core.js
+163
-101
vifib/static/js/fake.js
vifib/static/js/fake.js
+0
-1
vifib/static/js/jquery.urljs.js
vifib/static/js/jquery.urljs.js
+6
-1
No files found.
vifib/index.html
View file @
6ac251db
...
...
@@ -15,13 +15,13 @@
}
.content-primary
{
float
:
right
;
width
:
6
5
%
;
width
:
6
7
%
;
}
[
data-role
=
footer
]
{
width
:
30%
;
}
}
.
ui-content
.ui-listview
{
.
content-primary
.ui-listview
{
margin-top
:
0px
;
margin-bottom
:
0px
;
}
...
...
@@ -36,7 +36,7 @@
<
a
href
=
"
{{ link }}
"
data
-
direction
=
"
reverse
"
data
-
role
=
"
button
"
data
-
icon
=
"
{{ icon }}
"
data
-
iconpos
=
"
notext
"
title
=
"
{{ title }}
"
><
/a
>
{{
/
leftbutton
}}
{{
#
rightbutton
}}
<
a
href
=
"
{{ link }}
"
data
-
inline
=
"
true
"
data
-
mini
=
"
true
"
data
-
role
=
"
button
"
title
=
"
{{ title }}
"
><
/a
>
<
a
href
=
"
{{ link }}
"
data
-
role
=
"
button
"
data
-
icon
=
"
{{ icon }}
"
data
-
iconpos
=
"
notext
"
title
=
"
{{ title }}
"
><
/a
>
{{
/
rightbutton
}}
{{
#
headmenu
}}
<
div
data
-
role
=
"
navbar
"
>
...
...
@@ -94,7 +94,15 @@
<
/div
>
<
/div
>
</script>
<script
id=
"actions"
type=
"text/html"
>
<!--<
div
data
-
role
=
"
controlgroup
"
data
-
type
=
"
horizontal
"
>-->
{{
#
actions
}}
<
a
href
=
"
{{ link }}
"
data
-
role
=
"
button
"
data
-
inline
=
"
true
"
data
-
mini
=
"
true
"
>
{{
name
}}
<
/a
>
{{
/
actions
}}
<!--<
/div>--
>
</script>
<script
id=
"service-inlist"
type=
"text/html"
>
<
li
><
a
href
=
"
{{ link }}
"
><
h4
>
{{
name
}}
<
/h4></
a
><
/li
>
</script>
...
...
@@ -167,6 +175,53 @@
<
h3
>
{{
name
}}
<
/h3
>
<
/a
>
</script>
<!--
-INSTANCE // SERVICE
-->
<script
id=
"instance"
type=
"text/html"
>
{{
>
headbar
}}
{{
>
content
}}
</script>
<script
id=
"instancePanel"
type=
"text/html"
>
{{
>
actions
}}
<
ul
data
-
role
=
"
listview
"
>
{{
#
information
}}
<
li
>
{{
name
}}
<
h4
>
{{
value
}}
<
/h4
>
<
/li
>
{{
/
information
}}
<
/ul
>
</script>
<script
id=
"instance.list"
type=
"text/html"
>
<
form
id
=
"
search-form
"
>
<
div
data
-
role
=
"
fieldcontain
"
class
=
"
ui-hide-label
"
>
<
label
for
=
"
search
"
><
/label
>
<
input
type
=
"
search
"
name
=
"
search
"
placeholder
=
"
Search
"
/>
<
/div
>
<
/form
>
<
ul
data
-
role
=
"
listview
"
id
=
"
instance-list
"
><
/ul
>
</script>
<script
id=
"instance.listitem"
type=
"text/html"
>
<
a
href
=
"
{{ instance_url }}
"
>
{{
#
thumb_url
}}
<
img
src
=
"
{{ thumb_url }}
"
/>
{{
/
thumb_url
}}
<
h3
>
{{
instance_id
}}
<
/h3
>
<
/a
>
</script>
<script
id=
"instance.bangPanel"
type=
"text/html"
>
<
form
id
=
"
form-bang
"
>
<
label
for
=
"
reasons
"
>
Why
bang
this
instance
?
<
/label
>
<
textarea
name
=
"
reasons
"
><
/textarea
>
<
div
class
=
"
ui-body ui-body-b
"
>
<
fieldset
class
=
"
ui-grid-a
"
>
<
button
type
=
"
submit
"
data
-
theme
=
"
a
"
>
Connexion
<
/button
>
<
button
type
=
"
submit
"
data
-
theme
=
"
a
"
>
Cancel
<
/button
>
<
/fieldset
>
<
/div
>
<
/form
>
</script>
<!--
-LOGIN
-->
...
...
@@ -207,7 +262,7 @@
<
a
data
-
iconpos
=
"
top
"
data
-
icon
=
"
star
"
data
-
role
=
"
button
"
href
=
"
#/network
"
>
Networks
<
/a
>
<
/div
>
<
div
class
=
"
ui-block-a
"
>
<
a
data
-
iconpos
=
"
top
"
data
-
icon
=
"
star
"
data
-
role
=
"
button
"
href
=
"
#/
servi
ce
"
>
Services
<
/a
>
<
a
data
-
iconpos
=
"
top
"
data
-
icon
=
"
star
"
data
-
role
=
"
button
"
href
=
"
#/
instan
ce
"
>
Services
<
/a
>
<
/div
>
<
div
class
=
"
ui-block-b
"
>
<
a
data
-
iconpos
=
"
top
"
data
-
icon
=
"
star
"
data
-
role
=
"
button
"
href
=
"
#/computer
"
>
Computers
<
/a
>
...
...
@@ -221,6 +276,10 @@
<
/div
>
</script>
<script
id=
"root"
type=
"text/html"
>
<
div
data
-
role
=
"
page
"
data
-
theme
=
"
c
"
><
/div
>
</script>
<script
src=
"http://code.jquery.com/jquery-1.7.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/ICanHaz.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/modernizr-2.5.3.js"
></script>
...
...
@@ -232,6 +291,5 @@
<script
src=
"http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"
></script>
</head>
<body>
<div
data-role=
"page"
data-theme=
"c"
></div>
</body>
</html>
vifib/static/js/core.js
View file @
6ac251db
This diff is collapsed.
Click to expand it.
vifib/static/js/fake.js
View file @
6ac251db
...
...
@@ -113,7 +113,6 @@ var tmp = $.ajax;
$
.
ajax
=
function
(
url
,
options
){
// it will not work with cache set to false
if
(
url
.
hasOwnProperty
(
'
cache
'
))
{
url
.
cache
=
true
;
}
console
.
log
(
url
)
var
result
=
tmp
(
url
,
options
);
fakeserver
.
respond
();
return
result
;
...
...
vifib/static/js/jquery.urljs.js
View file @
6ac251db
...
...
@@ -70,7 +70,6 @@ $.extend({
}
this
.
current
=
this
.
list
[
i
][
j
];
this
.
clean
(
this
.
list
[
i
][
j
].
level
+
1
);
console
.
log
(
this
.
list
[
i
][
j
].
route
);
this
.
list
[
i
][
j
].
callback
(
hash
);
}
j
+=
1
;
...
...
@@ -81,6 +80,12 @@ $.extend({
isLastLevel
:
function
()
{
return
this
.
current
.
level
===
(
this
.
list
.
length
-
1
);
},
isCurrent
:
function
(
hash
)
{
var
extracted
=
$
.
router
.
extractKeys
(
this
.
current
.
route
),
regex
=
new
RegExp
(
'
^
'
+
extracted
.
regex
+
'
$
'
);
return
regex
.
test
(
hash
);
}
},
...
...
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