mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 01:33:53 +03:00
Various mainly stylistic improvements.
This commit is contained in:
parent
0f23312aec
commit
cc3733e6d4
@ -1191,6 +1191,7 @@
|
||||
|
||||
if(cb) {
|
||||
xhr.onload = function() {
|
||||
console.log("response text" + this.responseText);
|
||||
cb(null,{
|
||||
status:this.status,
|
||||
data:JSON.parse(this.responseText)
|
||||
|
@ -1,14 +1,23 @@
|
||||
:: A simple Twitter proxy.
|
||||
:: A simple Twitter proxy.
|
||||
::
|
||||
:::: /hook/core/twit/app
|
||||
::
|
||||
/? 314 :: need urbit 314
|
||||
/+ 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
|
||||
++ axle ,@t :: application state
|
||||
++ axle :: application state
|
||||
,@t
|
||||
:: $: %0 :: revision 0
|
||||
:: tul=(unit json) ::
|
||||
:: ==
|
||||
++ gilt :: subscription frame
|
||||
$% [%json p=json] :: json data
|
||||
[%html p=@t] :: html text
|
||||
@ -51,14 +60,6 @@
|
||||
|= old=(unit)
|
||||
~& %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
|
||||
|= [ost=bone you=ship pax=path]
|
||||
@ -79,7 +80,6 @@
|
||||
?- -.jop
|
||||
%tweet
|
||||
~& [%poke-tweet-path /tweet/(scot %ud ost)]
|
||||
|
||||
:~ [ost %pass /tweet/(scot %ud ost) %e [%them (some (posl jon))]]
|
||||
[ost %give %nice ~]
|
||||
==
|
||||
@ -93,11 +93,13 @@
|
||||
^- manx
|
||||
;html
|
||||
;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
|
||||
;+ style.resource
|
||||
;script
|
||||
=type "text/javascript"
|
||||
=src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"
|
||||
;
|
||||
==
|
||||
==
|
||||
;body
|
||||
;div#c
|
||||
@ -112,8 +114,8 @@
|
||||
;div#time;
|
||||
==
|
||||
==
|
||||
;script:"{(trip ;;(,@ .^(cx/(welp (scag 3 `path`root) /lib/urb/js))))}"
|
||||
;script:"{(trip ;;(,@ .^(%cx (welp root /main/js))))}"
|
||||
;+ library.resource
|
||||
;+ application.resource
|
||||
==
|
||||
==
|
||||
::
|
||||
|
@ -1,3 +1,8 @@
|
||||
|_ mud=@t
|
||||
++ grow |% ++ mime [/text/css (taco mud)] --
|
||||
++ grow
|
||||
|% ++ mime [/text/css (taco mud)]
|
||||
++ hymn ;style
|
||||
;- (trip mud)
|
||||
==
|
||||
--
|
||||
--
|
||||
|
@ -1,3 +1,8 @@
|
||||
|_ 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