mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 08:55:07 +03:00
Various mainly stylistic improvements.
This commit is contained in:
parent
0f23312aec
commit
cc3733e6d4
@ -1191,6 +1191,7 @@
|
|||||||
|
|
||||||
if(cb) {
|
if(cb) {
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
|
console.log("response text" + this.responseText);
|
||||||
cb(null,{
|
cb(null,{
|
||||||
status:this.status,
|
status:this.status,
|
||||||
data:JSON.parse(this.responseText)
|
data:JSON.parse(this.responseText)
|
||||||
|
@ -4,11 +4,20 @@
|
|||||||
::
|
::
|
||||||
/? 314 :: need urbit 314
|
/? 314 :: need urbit 314
|
||||||
/+ twitter :: use twitter library
|
/+ twitter :: use twitter library
|
||||||
|
/= resource :: resource tree
|
||||||
|
/. /= style /:/%%/style:/hymn/ :: stylesheet (css)
|
||||||
|
/= application /:/%%/app:/hymn/ :: application (js)
|
||||||
|
/= library /:/===/lib/urb:/hymn/ :: library (js)
|
||||||
|
== ::
|
||||||
::
|
::
|
||||||
:::: structures
|
:::: structures
|
||||||
::
|
::
|
||||||
|% :: structures
|
|% :: structures
|
||||||
++ axle ,@t :: application state
|
++ axle :: application state
|
||||||
|
,@t
|
||||||
|
:: $: %0 :: revision 0
|
||||||
|
:: tul=(unit json) ::
|
||||||
|
:: ==
|
||||||
++ gilt :: subscription frame
|
++ gilt :: subscription frame
|
||||||
$% [%json p=json] :: json data
|
$% [%json p=json] :: json data
|
||||||
[%html p=@t] :: html text
|
[%html p=@t] :: html text
|
||||||
@ -52,14 +61,6 @@
|
|||||||
~& %hose-state
|
~& %hose-state
|
||||||
[~ +>]
|
[~ +>]
|
||||||
::
|
::
|
||||||
++ root :: internal location
|
|
||||||
/(scot %p our.hid)/main/(scot %da lat.hid)/app/[app.hid]
|
|
||||||
::
|
|
||||||
++ incl :: include scripts
|
|
||||||
|= wal=wall
|
|
||||||
%+ turn wal
|
|
||||||
|= tape ;script(type "text/javascript", src +<);
|
|
||||||
::
|
|
||||||
++ peer :: accept subscriber
|
++ peer :: accept subscriber
|
||||||
|= [ost=bone you=ship pax=path]
|
|= [ost=bone you=ship pax=path]
|
||||||
^- [(list move) _+>]
|
^- [(list move) _+>]
|
||||||
@ -79,7 +80,6 @@
|
|||||||
?- -.jop
|
?- -.jop
|
||||||
%tweet
|
%tweet
|
||||||
~& [%poke-tweet-path /tweet/(scot %ud ost)]
|
~& [%poke-tweet-path /tweet/(scot %ud ost)]
|
||||||
|
|
||||||
:~ [ost %pass /tweet/(scot %ud ost) %e [%them (some (posl jon))]]
|
:~ [ost %pass /tweet/(scot %ud ost) %e [%them (some (posl jon))]]
|
||||||
[ost %give %nice ~]
|
[ost %give %nice ~]
|
||||||
==
|
==
|
||||||
@ -93,11 +93,13 @@
|
|||||||
^- manx
|
^- manx
|
||||||
;html
|
;html
|
||||||
;head
|
;head
|
||||||
;style:"{(trip ;;(,@ .^(%cx (welp root /main/css))))}"
|
|
||||||
;* %- incl :~
|
|
||||||
"//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"
|
|
||||||
==
|
|
||||||
;title: Urbit - Twitter Test
|
;title: Urbit - Twitter Test
|
||||||
|
;+ style.resource
|
||||||
|
;script
|
||||||
|
=type "text/javascript"
|
||||||
|
=src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"
|
||||||
|
;
|
||||||
|
==
|
||||||
==
|
==
|
||||||
;body
|
;body
|
||||||
;div#c
|
;div#c
|
||||||
@ -112,8 +114,8 @@
|
|||||||
;div#time;
|
;div#time;
|
||||||
==
|
==
|
||||||
==
|
==
|
||||||
;script:"{(trip ;;(,@ .^(cx/(welp (scag 3 `path`root) /lib/urb/js))))}"
|
;+ library.resource
|
||||||
;script:"{(trip ;;(,@ .^(%cx (welp root /main/js))))}"
|
;+ application.resource
|
||||||
==
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|_ mud=@t
|
|_ mud=@t
|
||||||
++ grow |% ++ mime [/text/css (taco mud)] --
|
++ grow
|
||||||
|
|% ++ mime [/text/css (taco mud)]
|
||||||
|
++ hymn ;style
|
||||||
|
;- (trip mud)
|
||||||
|
==
|
||||||
|
--
|
||||||
--
|
--
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|_ mud=@t
|
|_ mud=@t
|
||||||
++ grow |% ++ mime [/application/javascript (taco mud)] --
|
++ grow
|
||||||
|
|% ++ mime [/application/javascript (taco mud)]
|
||||||
|
++ hymn ;script
|
||||||
|
;- (trip mud)
|
||||||
|
==
|
||||||
|
--
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user