413 lines
12 KiB
HTML
413 lines
12 KiB
HTML
|
|
<!DOCTYPE HTML>
|
|
<html lang="" >
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
<title>example · GitBook</title>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="description" content="">
|
|
<meta name="generator" content="GitBook 3.2.3">
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../gitbook/style.css">
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<meta name="HandheldFriendly" content="true"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
|
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
|
|
|
|
|
<link rel="next" href="../end/README.md" />
|
|
|
|
|
|
<link rel="prev" href="1.html" />
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div class="book">
|
|
<div class="book-summary">
|
|
|
|
|
|
<div id="book-search-input" role="search">
|
|
<input type="text" placeholder="Type to search" />
|
|
</div>
|
|
|
|
|
|
<nav role="navigation">
|
|
|
|
|
|
|
|
<ul class="summary">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="chapter " data-level="1.1" data-path="../">
|
|
|
|
<a href="../">
|
|
|
|
|
|
Unreal Engine 5 Guild Book
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="1.1.1" data-path="../start/">
|
|
|
|
<a href="../start/">
|
|
|
|
|
|
start
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.1.2" data-path="./">
|
|
|
|
<a href="./">
|
|
|
|
|
|
part 1
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="articles">
|
|
|
|
|
|
<li class="chapter " data-level="1.1.2.1" data-path="1.html">
|
|
|
|
<a href="1.html">
|
|
|
|
|
|
quick start
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="chapter active" data-level="1.1.2.2" data-path="2.html">
|
|
|
|
<a href="2.html">
|
|
|
|
|
|
example
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="chapter " data-level="1.1.3" data-path="../end/README.md">
|
|
|
|
<span>
|
|
|
|
|
|
end
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li>
|
|
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
|
|
Published with GitBook
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="book-body">
|
|
|
|
<div class="body-inner">
|
|
|
|
|
|
|
|
<div class="book-header" role="navigation">
|
|
|
|
|
|
<!-- Title -->
|
|
<h1>
|
|
<i class="fa fa-circle-o-notch fa-spin"></i>
|
|
<a href=".." >example</a>
|
|
</h1>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="page-wrapper" tabindex="-1" role="main">
|
|
<div class="page-inner">
|
|
|
|
<div id="book-search-results">
|
|
<div class="search-noresults">
|
|
|
|
<section class="normal markdown-section">
|
|
|
|
<h3 id="example">example</h3>
|
|
<p>次に<code>vue.js</code>の書き方を紹介します。</p>
|
|
<pre><code class="lang-sh">./bsky-web
|
|
├── package.json
|
|
├── src
|
|
│ ├── App.vue
|
|
│ └── main.js
|
|
└── vue.config.js
|
|
</code></pre>
|
|
<pre><code class="lang-json:package.json">{
|
|
"name": "bsky-web",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"serve": "vue-cli-service serve",
|
|
"build": "vue-cli-service build",
|
|
"lint": "vue-cli-service lint"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.25.0",
|
|
"core-js": "^3.6.4",
|
|
"vue": "^2.6.11"
|
|
},
|
|
"devDependencies": {
|
|
"@vue/cli-service": "~4.5.15"
|
|
}
|
|
}
|
|
</code></pre>
|
|
<pre><code class="lang-json:vue.config.js">module.exports = {
|
|
publicPath: "./",
|
|
configureWebpack: {
|
|
output: {
|
|
filename: '[name].js',
|
|
chunkFilename: '[name].js'
|
|
}
|
|
},
|
|
css: {
|
|
extract: {
|
|
filename: '[name].css',
|
|
chunkFilename: '[name].css'
|
|
},
|
|
},
|
|
}
|
|
</code></pre>
|
|
<pre><code class="lang-html:src/App.vue"><template>
|
|
<div id="app">
|
|
<div v-if="record" class="bluesky-record">
|
|
<div v-for="i in record.data.records">
|
|
<p><span class="handle">@{{ handle }}</span></p>
|
|
<p><span class="text">{{ i.value.text }}</span></p>
|
|
<p><span class="time"><a :href="i.uri">{{ i.value.createdAt }}</a></span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import axios from 'axios'
|
|
export default {
|
|
data () {
|
|
return {
|
|
handle: "yui.syui.ai",
|
|
record: null,
|
|
}
|
|
},
|
|
mounted () {
|
|
axios
|
|
.get("https://bsky.social/xrpc/com.atproto.repo.listRecords?repo=" + this.handle + "&collection=app.bsky.feed.post&limit=1")
|
|
.then(response => (this.record = response));
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
div#app {
|
|
background-color:rgb(255, 214, 10);
|
|
}
|
|
</style>
|
|
</code></pre>
|
|
<pre><code class="lang-js:src/main.js">import Vue from 'vue'
|
|
import App from './App.vue'
|
|
|
|
new Vue({
|
|
render: h => h(App)
|
|
}).$mount('#app')
|
|
</code></pre>
|
|
<p>では、これらのsrcをpreview(プレビュー)します。</p>
|
|
<pre><code class="lang-sh">$ nvm install 14
|
|
$ yarn install
|
|
$ yarn serve
|
|
|
|
$ curl localhost:8080
|
|
</code></pre>
|
|
<p>最後にbuildして、それをweb-serverに置くとページにアクセスできるようになります。</p>
|
|
<pre><code class="lang-sh">$ yarn build
|
|
</code></pre>
|
|
<pre><code>./dist
|
|
├── app.js
|
|
├── app.js.map
|
|
├── chunk-vendors.js
|
|
├── chunk-vendors.js.map
|
|
└── index.html
|
|
</code></pre>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
<div class="search-results">
|
|
<div class="has-results">
|
|
|
|
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
|
<ul class="search-results-list"></ul>
|
|
|
|
</div>
|
|
<div class="no-results">
|
|
|
|
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="1.html" class="navigation navigation-prev " aria-label="Previous page: quick start">
|
|
<i class="fa fa-angle-left"></i>
|
|
</a>
|
|
|
|
|
|
<a href="../end/README.md" class="navigation navigation-next " aria-label="Next page: end">
|
|
<i class="fa fa-angle-right"></i>
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var gitbook = gitbook || [];
|
|
gitbook.push(function() {
|
|
gitbook.page.hasChanged({"page":{"title":"example","level":"1.1.2.2","depth":3,"next":{"title":"end","level":"1.1.3","depth":2,"path":"end/README.md","ref":"end/README.md","articles":[]},"previous":{"title":"quick start","level":"1.1.2.1","depth":3,"path":"c1/1.md","ref":"c1/1.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css","website":"styles/website.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css","website":"styles/website.css"}},"file":{"path":"c1/2.md","mtime":"2025-01-27T12:47:39.393Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-01-27T13:18:01.398Z"},"basePath":"..","book":{"language":""}});
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
|
|
<script src="../gitbook/gitbook.js"></script>
|
|
<script src="../gitbook/theme.js"></script>
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
|
|
|
|
|
|
|
|
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|