This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div>{{ page.profile.name }}</div> | |
</template> | |
<script> | |
export default { | |
props: ['page'] | |
} | |
</script> |
You may want to manipulate initial HTML to inject some <link>
s or <script>
s, you can do this with setHead
in saber-browser.js
or head
component option, but that adds bytes to your app runtime, Saber actually has an API that allows you to customize initial HTML.
Open saber-node.js
:
exports.getDocumentData = documentData => {
documentData.bodyScript += `<script>console.log('Run a script after your app code')</script>`
return data
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -g postcss-cli | |
postcss in.css -o out.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>hello {name}</div> | |
<script> | |
export default { | |
data() { | |
return { | |
name: 'egoist' | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function quickSort(list) { | |
if (list.length < 2) { | |
return list | |
} | |
const candidate = list[list.length - 1] | |
const less = list.filter(i => i < candidate) | |
const greater = list.filter(i => i > candidate) | |
return [ |
NewerOlder