Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs
Commits
0d108acd
Commit
0d108acd
authored
Jun 05, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hardcoded link to the original domain
parent
0e0e1c9b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
8 deletions
+12
-8
app.js
app.js
+2
-1
gadget/crib-sw-gadget.js
gadget/crib-sw-gadget.js
+4
-3
gadget/crib-sw-storage-gadget.html
gadget/crib-sw-storage-gadget.html
+1
-0
gadget/crib-sw-storage-gadget.js
gadget/crib-sw-storage-gadget.js
+1
-1
gadget/gadget_cribjs_page_select_site.html
gadget/gadget_cribjs_page_select_site.html
+2
-2
gadget/gadget_cribjs_page_select_site.js
gadget/gadget_cribjs_page_select_site.js
+2
-1
No files found.
app.js
View file @
0d108acd
...
...
@@ -34,7 +34,8 @@
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
,
jio_configuration_string
=
"
https://cribjs.nexedi.net/cribjs-latest.zip
"
;
getURL
=
window
.
location
,
jio_configuration_string
=
getURL
.
protocol
+
"
//
"
+
getURL
.
host
+
"
/cribjs-latest.zip
"
;
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
'
jio_configurator
'
);
...
...
gadget/crib-sw-gadget.js
View file @
0d108acd
...
...
@@ -4,10 +4,10 @@
"
use strict
"
;
function
getStorageGadget
(
gadget
)
{
var
storage_gadget
,
site_editor_gadget_url
;
var
storage_gadget
,
site_editor_gadget_url
,
getURL
=
window
.
location
;
return
gadget
.
getSetting
(
"
site_editor_gadget_url
"
,
"
https://cribjs.nexedi.net
/gadget/crib-sw-storage-gadget.html
"
getURL
.
protocol
+
"
//
"
+
getURL
.
host
+
"
/gadget/crib-sw-storage-gadget.html
"
)
.
push
(
function
(
url
)
{
if
(
gadget
.
props
.
storage_gadget_url
==
url
)
{
...
...
@@ -43,8 +43,9 @@
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
var
getURL
=
window
.
location
;
g
.
props
.
element
=
element
;
g
.
props
.
storage_gadget_url
=
"
https://cribjs.nexedi.net/gadget/crib-sw-storage-gadget.html
"
;
g
etURL
.
protocol
+
"
//
"
+
getURL
.
host
+
"
/gadget/crib-sw-storage-gadget.html
"
});
})
.
ready
(
function
(
gadget
)
{
...
...
gadget/crib-sw-storage-gadget.html
View file @
0d108acd
...
...
@@ -15,5 +15,6 @@
</head>
<body>
Couscosu
</body>
</html>
\ No newline at end of file
gadget/crib-sw-storage-gadget.js
View file @
0d108acd
...
...
@@ -92,7 +92,7 @@
// XXX Hack to not add a new service worker when one is already declared
if
(
!
navigator
.
serviceWorker
.
controller
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
,
notify
)
{
navigator
.
serviceWorker
.
register
(
'
sw.js
'
,
{
scope
:
'
.
/
'
}).
then
(
navigator
.
serviceWorker
.
register
(
'
/sw.js
'
,
{
scope
:
'
/
'
}).
then
(
function
(){
if
(
navigator
.
serviceWorker
.
controller
)
{
resolve
();
...
...
gadget/gadget_cribjs_page_select_site.html
View file @
0d108acd
...
...
@@ -20,7 +20,7 @@
<div
class=
"nav_content save_load container"
>
<h3>
Site Editor Gadget URL
</h3>
<p>
Enter the URL of the Crib Gadget from the site you want to edit. If you want to edit this site use:
"
https://cribjs.nexedi.net
/gadget/crib-sw-storage-gadget.html"
</p>
"/gadget/crib-sw-storage-gadget.html"
</p>
<div
class=
"row"
>
<table
class=
"table"
>
<tr>
...
...
@@ -33,7 +33,7 @@
<div
class=
"form-group"
>
<label
for=
"url"
class=
"col-sm-2 control-label"
>
URL
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control url"
id=
"url"
value=
"
https://cribjs.nexedi.net
/gadget/crib-sw-storage-gadget.html"
>
<input
type=
"text"
class=
"form-control url"
id=
"url"
value=
"/gadget/crib-sw-storage-gadget.html"
>
</div>
</div>
<div
class=
"form-group"
>
...
...
gadget/gadget_cribjs_page_select_site.js
View file @
0d108acd
...
...
@@ -30,9 +30,10 @@
gadget
.
props
.
options
=
options
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
var
getURL
=
window
.
location
;
return
gadget
.
getSetting
(
"
site_editor_gadget_url
"
,
"
https://cribjs.nexedi.net
/gadget/crib-sw-storage-gadget.html
"
getURL
.
protocol
+
"
//
"
+
getURL
.
host
+
"
/gadget/crib-sw-storage-gadget.html
"
)
})
.
push
(
function
(
site_editor_gadget_url
)
{
...
...
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