afaur/deno-pogo-svelte-starter 3
A starter project for using SSR with deno and svelte.
A node web server written in coffee by wrapping http.createServer.
Get active window title in Node.js.
Search ASCII characters by name or number.
A tiny game to teach alphabets
Extract a Mac App's icon to a png file to be used.
💎 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.
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
comment created time in 2 months
issue commentFormidableLabs/urql
@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
comment created time in 2 months
issue commentsholladay/pogo
[RFC] Additional metadata for readme examples?
afaurcomment created time in 2 months
issue commentsveltejs/svelte
@devongovett Here is a use action example:
- https://svelte.dev/repl/f4b5f661bb7b40b7bd1272c1f58d2efc?version=3.24.1
comment created time in 3 months
push eventafaur/svelte-template-carbon
commit sha 667193635cd12ebf3086ec2550dbb794df38549c
link to carbon add commit in readme
push time in 3 months
push eventafaur/svelte-template-carbon
commit sha 6ffe319129fa44c28379b118adde154e0831db71
update readme
push time in 3 months
push eventafaur/svelte-template-carbon
commit sha 2e6c7902248d5e01fc86ff11a1b17b631a922e0b
update readme
push time in 3 months
push eventafaur/svelte-template-carbon
commit sha 3c981cd1d41db94797fed87ea7b8485fbdb7004f
initial commit
commit sha 4f0cf976e27e4cbf6bbafaadb1d3baf7ddb646d3
first commit
commit sha 1268726a9af7ac4cd43abe14fa2893c6165bf1c5
typo
commit sha 3c63d3ad520902654331bb130646917065dcbbda
update deps
commit sha a15721468fde7ceb4610baf802bc881ef2d84c99
remove lockfile, so that people always get latest svelte
commit sha 222cadda5d07c15f4895e37fdda2a318cea6daaa
update package, rollup config and use export in main
commit sha 8655d376b8462307e794c5d0851c1336e23aa90d
Merge pull request #1 from antonheryanto/master update package, rollup config and use export in main
commit sha a1f243649b6162bac74e2b6743e64dac54dd44c1
update deps
commit sha ed48f89ed5d368fd2c2834d78e492a2bc0da9fec
update deps
commit sha 8811853c1780ee9d1948172142bb92b99660167a
Support store by default
commit sha 46ac55d2ed1e2e1b1bf86e87cccaedba13c47781
Update rollup.config.js
commit sha 19d07d5678e4261820621e3e8d3600bac84669bc
`name` is now `output.name`
commit sha b6e477c959da8f39faa0a0e8c4cded26430b8327
update deps
commit sha 99b3f859a7bba238fc3c71457e4f6b04b125afac
Merge branch 'master' of github.com:sveltejs/template
commit sha e8c7d2017181944db84a6b5d5cb626ce59b810e8
Update README.md
commit sha d6045c0a4c7dec87a021e44c88364bc81b135388
update dependencies, move to 2
commit sha cca53b3168df599dde4005edb0c10cb0ddea1a21
simplify config
commit sha 4e9b3cb256e36b49845e6603738c61575623c797
remove yarn.lock
commit sha c061c3c4e9630c0530938a8b9b12cecfc5dfe457
update deps, opt in to v3 behaviour
commit sha 479203a1cd778a7e6d69d747d72d089862292769
Changes to make this work on Windows as well.
push time in 3 months
push eventafaur/svelte-template-carbon
commit sha 0cd6874ec9fe8ffaa4887b8edaa56695720af4df
Update README.md
push time in 3 months
pull request commentsholladay/pogo
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).
comment created time in 3 months
push eventafaur/pogo
commit sha e733d8d9d2f12aba7ed5722cd355e1686bc760f3
remove interfaces added for deno doc
push time in 3 months
push eventafaur/pogo
commit sha 71f488d978f76006d953b7490fdbdfd97bccdf70
remove unnecessary semicolon
push time in 3 months
push eventafaur/pogo
commit sha 89aa06cd2d69dffa74a3585a874ee44039985792
export request and response classes from main
push time in 3 months
push eventafaur/pogo
commit sha 69058ab6770941585559bcd4864cc010b48666ff
export toolkit class from main
push time in 3 months
push eventafaur/pogo
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 <[email protected]> Co-authored-by: Stanislau Niadbailau <[email protected]>
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 <[email protected]>
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 <[email protected]> * Document h.directory() Co-authored-by: Stanislau Niadbailau <[email protected]>
commit sha f68b8275846a7e137e0a90cdff5ff2d64d3e851c
Merge branch 'master' into deno-doc-wip
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- Needsacornand other dependencies available throughrequire.compiler.js- Needsfsand reads a file fromargvto 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-resolveplugin complained aboutacornandastring.- Importing only what was used from them instead of the
defaultseemed to fix the issue.
- Importing only what was used from them instead of the
- Added
Brotliandgzipcompression (mayberuntime.jscould have this as well?).unpkgmay use these if they are provided in thenpmpackage, 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 asmalina.jsbut with all deps bundled as anes)- This is really
malina-including-deps.mjs, but I named itweb-compiler.mjs, do you have a name preference?
- This is really
- Steps to create and run the
web-compiler-example.htmlgen_exa=1 npm run preparecreates aweb-compiler-example.htmlfile in the directory.npx servor .will run a local web server in the current directory.- Visiting
http://localhost:8080/web-compiler-example.htmlwillcompile, andrunthe code in thedom.
- The
created time in 3 months
push eventafaur/malinajs
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
push time in 3 months
push eventafaur/malinajs
commit sha 12433a4bebb3ffd0c840553fd4b00c9f6f22fae3
add gen_exa flag to make usage example
push time in 3 months
push eventafaur/malinajs
commit sha 6f3e752dfd37edb8a00e570583a6c06f96d54a5a
add web-compiler rollup config add br and gz to gitignore
push time in 3 months
fork afaur/malinajs
Frontend compiler, inspired by Svelte
https://malinajs.github.io/repl/
fork in 3 months