ue/book/_book/c1/2.html
2025-02-05 20:06:39 +09:00

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>&#x6B21;&#x306B;<code>vue.js</code>&#x306E;&#x66F8;&#x304D;&#x65B9;&#x3092;&#x7D39;&#x4ECB;&#x3057;&#x307E;&#x3059;&#x3002;</p>
<pre><code class="lang-sh">./bsky-web
&#x251C;&#x2500;&#x2500; package.json
&#x251C;&#x2500;&#x2500; src
&#x2502; &#x251C;&#x2500;&#x2500; App.vue
&#x2502; &#x2514;&#x2500;&#x2500; main.js
&#x2514;&#x2500;&#x2500; vue.config.js
</code></pre>
<pre><code class="lang-json:package.json">{
&quot;name&quot;: &quot;bsky-web&quot;,
&quot;version&quot;: &quot;0.0.1&quot;,
&quot;private&quot;: true,
&quot;scripts&quot;: {
&quot;serve&quot;: &quot;vue-cli-service serve&quot;,
&quot;build&quot;: &quot;vue-cli-service build&quot;,
&quot;lint&quot;: &quot;vue-cli-service lint&quot;
},
&quot;dependencies&quot;: {
&quot;axios&quot;: &quot;^0.25.0&quot;,
&quot;core-js&quot;: &quot;^3.6.4&quot;,
&quot;vue&quot;: &quot;^2.6.11&quot;
},
&quot;devDependencies&quot;: {
&quot;@vue/cli-service&quot;: &quot;~4.5.15&quot;
}
}
</code></pre>
<pre><code class="lang-json:vue.config.js">module.exports = {
publicPath: &quot;./&quot;,
configureWebpack: {
output: {
filename: &apos;[name].js&apos;,
chunkFilename: &apos;[name].js&apos;
}
},
css: {
extract: {
filename: &apos;[name].css&apos;,
chunkFilename: &apos;[name].css&apos;
},
},
}
</code></pre>
<pre><code class="lang-html:src/App.vue">&lt;template&gt;
&lt;div id=&quot;app&quot;&gt;
&lt;div v-if=&quot;record&quot; class=&quot;bluesky-record&quot;&gt;
&lt;div v-for=&quot;i in record.data.records&quot;&gt;
&lt;p&gt;&lt;span class=&quot;handle&quot;&gt;@{{ handle }}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;text&quot;&gt;{{ i.value.text }}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;time&quot;&gt;&lt;a :href=&quot;i.uri&quot;&gt;{{ i.value.createdAt }}&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
import axios from &apos;axios&apos;
export default {
data () {
return {
handle: &quot;yui.syui.ai&quot;,
record: null,
}
},
mounted () {
axios
.get(&quot;https://bsky.social/xrpc/com.atproto.repo.listRecords?repo=&quot; + this.handle + &quot;&amp;collection=app.bsky.feed.post&amp;limit=1&quot;)
.then(response =&gt; (this.record = response));
}
}
&lt;/script&gt;
&lt;style&gt;
div#app {
background-color:rgb(255, 214, 10);
}
&lt;/style&gt;
</code></pre>
<pre><code class="lang-js:src/main.js">import Vue from &apos;vue&apos;
import App from &apos;./App.vue&apos;
new Vue({
render: h =&gt; h(App)
}).$mount(&apos;#app&apos;)
</code></pre>
<p>&#x3067;&#x306F;&#x3001;&#x3053;&#x308C;&#x3089;&#x306E;src&#x3092;preview(&#x30D7;&#x30EC;&#x30D3;&#x30E5;&#x30FC;)&#x3057;&#x307E;&#x3059;&#x3002;</p>
<pre><code class="lang-sh">$ nvm install 14
$ yarn install
$ yarn serve
$ curl localhost:8080
</code></pre>
<p>&#x6700;&#x5F8C;&#x306B;build&#x3057;&#x3066;&#x3001;&#x305D;&#x308C;&#x3092;web-server&#x306B;&#x7F6E;&#x304F;&#x3068;&#x30DA;&#x30FC;&#x30B8;&#x306B;&#x30A2;&#x30AF;&#x30BB;&#x30B9;&#x3067;&#x304D;&#x308B;&#x3088;&#x3046;&#x306B;&#x306A;&#x308A;&#x307E;&#x3059;&#x3002;</p>
<pre><code class="lang-sh">$ yarn build
</code></pre>
<pre><code>./dist
&#x251C;&#x2500;&#x2500; app.js
&#x251C;&#x2500;&#x2500; app.js.map
&#x251C;&#x2500;&#x2500; chunk-vendors.js
&#x251C;&#x2500;&#x2500; chunk-vendors.js.map
&#x2514;&#x2500;&#x2500; 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>