profile
viewpoint
Adam Faur afaur @tinytacoteam http://zazuapp.org Dynamic all the things. [Profile Photo] (https://bit.ly/2p5Pqu9)

afaur/deno-pogo-svelte-starter 3

A starter project for using SSR with deno and svelte.

afaur/coffee-web-server 1

A node web server written in coffee by wrapping http.createServer.

afaur/active-window 0

Get active window title in Node.js.

afaur/alfred-ascii-search 0

Search ASCII characters by name or number.

afaur/alphabet_race 0

A tiny game to teach alphabets

afaur/app2png-rs 0

Extract a Mac App's icon to a png file to be used.

afaur/artichoke 0

💎 Artichoke is a Ruby made with Rust

issue commentsveltejs/svelte

Proposal: Top-Level <:Body> Injections

@brunnerh "That leaks memory..."

  • Yes, I am glad you noticed this as it was intentional, but not explained in the comments.

"What is it for?"

  • The hash was added so the original content could be removed from the DOM, and then come back after destroy.
    • It does not get cleaned up because it contains a copy of the DOM that was needed to persist through a destroy.

"The simplest version of the action probably..."

  • Yes, I did try this way, but I wanted the content removed from the DOM, but be able to be restored back.
ChrisTalman

comment created time in 2 months

issue commentsveltejs/svelte

deleting object properties doesn't trigger a render

Since delete participants[name] will return true, what about participants = delete participants[name] && participants

  • https://svelte.dev/repl/55b943740d5a4f68b2258f974a5bd198?version=3.24.1
arggh

comment created time in 2 months

issue commentFormidableLabs/urql

Svelte ssr

@vladshcherbin Best I can tell @urql/svelte is meant to be used inside svelte components (uses context api), and sapper does not directly accommodate this. If you want to use urql with sapper you could use @urql/core.

Here is an example:

<script context='module'>
  import { createClient, dedupExchange, cacheExchange, fetchExchange, ssrExchange } from '@urql/core'
  import { pipe, subscribe } from 'wonka'

  const isServerSide = typeof window === 'undefined'

  const ssr = ssrExchange({
    isClient: !isServerSide,
    initialState: !isServerSide ? window.__URQL_DATA__ : undefined,
  })

  export async function preload(req) {
    if (isServerSide) {
      const client = createClient({
        url: 'https://0ufyz.sse.codesandbox.io',
        fetch: this.fetch,
        exchanges: [ dedupExchange, cacheExchange, ssr, fetchExchange ]
      })

      const q = `query { todos { id text complete } }`

      const todos = await new Promise(r => {
        const { unsubscribe } = pipe(
          client.query(q, {}),
          subscribe(result => { r(result.data.todos) })
        )
      })

      return { todos }
    }
  }
</script>

<script>
  export let todos = []
</script>

<ul>
  { #each todos as todo }
    <li>
      <span>ID: { todo.id }</span>
      <span>ID: { todo.text }</span>
      <span>Complete: { todo.complete }</span>
    </li>
  { /each }
</ul>
```html
vladshcherbin

comment created time in 2 months

issue commentsholladay/pogo

[RFC] Additional metadata for readme examples?

The only other thing I can think of that may be good to add is a deno doc badge in the README.md.

afaur

comment created time in 2 months

issue commentsveltejs/svelte

Events in spread props

@devongovett Here is a use action example:

  • https://svelte.dev/repl/f4b5f661bb7b40b7bd1272c1f58d2efc?version=3.24.1
fbasso

comment created time in 3 months

push eventafaur/svelte-template-carbon

Adam Faur

commit sha 667193635cd12ebf3086ec2550dbb794df38549c

link to carbon add commit in readme

view details

push time in 3 months

push eventafaur/svelte-template-carbon

Adam Faur

commit sha 6ffe319129fa44c28379b118adde154e0831db71

update readme

view details

push time in 3 months

push eventafaur/svelte-template-carbon

Adam Faur

commit sha 2e6c7902248d5e01fc86ff11a1b17b631a922e0b

update readme

view details

push time in 3 months

push eventafaur/svelte-template-carbon

Rich Harris

commit sha 3c981cd1d41db94797fed87ea7b8485fbdb7004f

initial commit

view details

Rich Harris

commit sha 4f0cf976e27e4cbf6bbafaadb1d3baf7ddb646d3

first commit

view details

Rich Harris

commit sha 1268726a9af7ac4cd43abe14fa2893c6165bf1c5

typo

view details

Rich Harris

commit sha 3c63d3ad520902654331bb130646917065dcbbda

update deps

view details

Rich Harris

commit sha a15721468fde7ceb4610baf802bc881ef2d84c99

remove lockfile, so that people always get latest svelte

view details

Anton Heryanto Hasan

commit sha 222cadda5d07c15f4895e37fdda2a318cea6daaa

update package, rollup config and use export in main

view details

Rich Harris

commit sha 8655d376b8462307e794c5d0851c1336e23aa90d

Merge pull request #1 from antonheryanto/master update package, rollup config and use export in main

view details

Rich Harris

commit sha a1f243649b6162bac74e2b6743e64dac54dd44c1

update deps

view details

Rich Harris

commit sha ed48f89ed5d368fd2c2834d78e492a2bc0da9fec

update deps

view details

Rich Harris

commit sha 8811853c1780ee9d1948172142bb92b99660167a

Support store by default

view details

Rich Harris

commit sha 46ac55d2ed1e2e1b1bf86e87cccaedba13c47781

Update rollup.config.js

view details

Conduitry

commit sha 19d07d5678e4261820621e3e8d3600bac84669bc

`name` is now `output.name`

view details

Rich Harris

commit sha b6e477c959da8f39faa0a0e8c4cded26430b8327

update deps

view details

Rich Harris

commit sha 99b3f859a7bba238fc3c71457e4f6b04b125afac

Merge branch 'master' of github.com:sveltejs/template

view details

Rich Harris

commit sha e8c7d2017181944db84a6b5d5cb626ce59b810e8

Update README.md

view details

Rich Harris

commit sha d6045c0a4c7dec87a021e44c88364bc81b135388

update dependencies, move to 2

view details

Rich Harris

commit sha cca53b3168df599dde4005edb0c10cb0ddea1a21

simplify config

view details

Rich Harris

commit sha 4e9b3cb256e36b49845e6603738c61575623c797

remove yarn.lock

view details

Rich Harris

commit sha c061c3c4e9630c0530938a8b9b12cecfc5dfe457

update deps, opt in to v3 behaviour

view details

Cain Voong

commit sha 479203a1cd778a7e6d69d747d72d089862292769

Changes to make this work on Windows as well.

view details

push time in 3 months

push eventafaur/svelte-template-carbon

Adam Faur

commit sha 0cd6874ec9fe8ffaa4887b8edaa56695720af4df

Update README.md

view details

push time in 3 months

delete branch afaur/pogo

delete branch : deno-doc-wip

delete time in 3 months

pull request commentsholladay/pogo

Enhance `deno doc` result

No problem. I was able to merge this with master today, and the changes were easy to resolve. I removed the interfaces that I added to types, and then added tookit, request, and response as exports from main. I think this will allow for jsdoc strings on everything that is currently listed here (https://github.com/sholladay/pogo#api).

afaur

comment created time in 3 months

push eventafaur/pogo

Adam Faur

commit sha e733d8d9d2f12aba7ed5722cd355e1686bc760f3

remove interfaces added for deno doc

view details

push time in 3 months

push eventafaur/pogo

Adam Faur

commit sha 71f488d978f76006d953b7490fdbdfd97bccdf70

remove unnecessary semicolon

view details

push time in 3 months

push eventafaur/pogo

Adam Faur

commit sha 89aa06cd2d69dffa74a3585a874ee44039985792

export request and response classes from main

view details

push time in 3 months

push eventafaur/pogo

Adam Faur

commit sha 69058ab6770941585559bcd4864cc010b48666ff

export toolkit class from main

view details

push time in 3 months

push eventafaur/pogo

Stanislau

commit sha 015a929bc348c3e6708a7c45ff492baa38fff18b

Add React on Server example (#37) * add react-on-server example * Adds link for project to the list of examples * Tweak code style of Post component * Tweak code style of Post component * Fix tests * Add final newline to dependencies.ts * Tweak example docs Co-authored-by: Seth Holladay <me@seth-holladay.com> Co-authored-by: Stanislau Niadbailau <nedbailov375426@gmail.con>

view details

Adam Faur

commit sha 94ad15574a0c2f0e7bdb1dcb5be99f67dc68e3ae

Update to Deno 1.2.0 (#47) * update deps update delCookie to deleteCookie * update supported version in readme upgrade assert version alias assertStrictEqual as assertStrictEq * remove type assertions * update .travis.yml * Update imports Co-authored-by: Seth Holladay <me@seth-holladay.com>

view details

Seth Holladay

commit sha cafab40982eafa50a171b9f2886b0f96fa35244e

Add h.directory() for easier static file serving (#48) * Add directory handler * Add tests for h.directory() (#44) * add tests for h.directory, fix bug with not full path bump testing module * Response to comments rename dirname to file move test withour listing options before edge cases, but diff shows that I have made hufe refactoring, not true Co-authored-by: Stanislau Niadbailau <nedbailov375426@gmail.con> * Document h.directory() Co-authored-by: Stanislau Niadbailau <nedbailov375426@gmail.con>

view details

Adam Faur

commit sha f68b8275846a7e137e0a90cdff5ff2d64d3e851c

Merge branch 'master' into deno-doc-wip

view details

push time in 3 months

issue openedmalinajs/malinajs

Add es version of compiler (with deps included) to npm package

I would like to compile and run malinajs code in an html file without nodejs using an es file from unpkg.com/malinajs.

The malina.js and compiler.js inside of the npm package seem to require nodejs.

  • malina.js - Needs acorn and other dependencies available through require.
  • compiler.js - Needs fs and reads a file from argv to compile.

I was able to make some changes to support this, but would like some feedback before creating a PR.

  • Branch/commit with changes: https://github.com/afaur/malinajs/commit/065e936f9eff33ca7fec08486539245d17266981
  • Notes
    • The node-resolve plugin complained about acorn and astring.
      • Importing only what was used from them instead of the default seemed to fix the issue.
    • Added Brotli and gzip compression (maybe runtime.js could have this as well?).
      • unpkg may use these if they are provided in the npm package, but I am not sure https://github.com/mjackson/unpkg/issues/77#issuecomment-417879678
      • Do you happen to know if including these are necessary?
    • Made a new rollup bundle called web-compiler (Same as malina.js but with all deps bundled as an es)
      • This is really malina-including-deps.mjs, but I named it web-compiler.mjs, do you have a name preference?
    • Steps to create and run the web-compiler-example.html
      • gen_exa=1 npm run prepare creates a web-compiler-example.html file in the directory.
      • npx servor . will run a local web server in the current directory.
      • Visiting http://localhost:8080/web-compiler-example.html will compile, and run the code in the dom.

created time in 3 months

push eventafaur/malinajs

Adam Faur

commit sha 065e936f9eff33ca7fec08486539245d17266981

add es web compiler add web-compiler rollup config add br and gz to gitignore add gen_exa flag to make usage example

view details

push time in 3 months

push eventafaur/malinajs

Adam Faur

commit sha 12433a4bebb3ffd0c840553fd4b00c9f6f22fae3

add gen_exa flag to make usage example

view details

push time in 3 months

push eventafaur/malinajs

Adam Faur

commit sha 6f3e752dfd37edb8a00e570583a6c06f96d54a5a

add web-compiler rollup config add br and gz to gitignore

view details

push time in 3 months

create barnchafaur/malinajs

branch : add-web-compiler

created branch time in 3 months

fork afaur/malinajs

Frontend compiler, inspired by Svelte

https://malinajs.github.io/repl/

fork in 3 months

more