Skip to content

Commit b12da78

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
chore(soba): configure storybook
1 parent d5e3f18 commit b12da78

38 files changed

+142232
-2
lines changed

libs/soba/.storybook/main.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
const config = {
22
stories: ['../**/*.stories.@(js|jsx|ts|tsx|mdx)'],
33
addons: ['@storybook/addon-essentials'],
4+
webpackFinal: async (config) => {
5+
// apply any global webpack configs that might have been specified in .storybook/main.js
6+
7+
// add your own webpack tweaks if needed
8+
config.module.rules.push({
9+
test: /\.(glsl|vs|fs|vert|frag)$/,
10+
exclude: /node_modules/,
11+
use: ['raw-loader', 'glslify-loader'],
12+
include: resolve(__dirname, '../'),
13+
});
14+
return config;
15+
},
16+
staticDirs: ['./public'],
417
framework: {
518
name: '@storybook/angular',
619
options: {},
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<title>Angular Three Documentation</title>
2+
<base href="/%STORYBOOK_BASE_HREF%" />
3+
<meta name="description" content="Documentation site (Storybook) of Angular Three Soba" />
4+
<meta name="author" content="Chau Tran" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
8+
/>
9+
<meta property="og:title" content="Angular Three - Soba" />
10+
<meta property="og:description" content="Documentation site (Storybook) of Angular Three Soba" />
11+
<meta property="og:url" content="https://angular-threejs-soba.netlify.app" />
12+
<meta property="og:image" content="https://angular-threejs.netlify.app/img/ngt-logo.png" />
13+
<meta name="twitter:title" content="Angular Three Soba Documentation" />
14+
<meta name="twitter:description" content="Documentation site (Storybook) of Angular Three Soba" />
15+
<meta name="twitter:image" content=" https://angular-threejs.netlify.app/img/ngt-logo.png" />
16+
<meta name="twitter:card" content="summary_large_image" />
17+
<link rel="icon" type="image/x-icon" href="/soba/ngt-logo.svg" />

libs/soba/.storybook/manager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { addons } from '@storybook/addons';
2+
import theme from './theme';
3+
4+
addons.setConfig({ theme });
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<style>
2+
html,
3+
body,
4+
#storybook-root {
5+
width: 100%;
6+
height: 100%;
7+
background-color: #121212;
8+
}
9+
10+
.html-story-block {
11+
color: white;
12+
width: 120px;
13+
position: relative;
14+
margin-left: 100px;
15+
}
16+
17+
.html-story-block.margin300 {
18+
margin-left: 300px;
19+
}
20+
21+
.html-story-block:before {
22+
content: '';
23+
display: block;
24+
position: absolute;
25+
26+
top: 50%;
27+
left: -60px;
28+
29+
width: 60px;
30+
height: 1px;
31+
background-color: white;
32+
}
33+
34+
.html-story-label {
35+
background-color: white;
36+
color: black;
37+
width: 100px;
38+
height: 20px;
39+
display: flex;
40+
align-items: center;
41+
justify-content: center;
42+
}
43+
</style>
94.1 KB
Loading
424 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

libs/soba/.storybook/public/soba/assets/low-poly-narwhal.gltf

Lines changed: 91 additions & 0 deletions
Large diffs are not rendered by default.
Loading
Binary file not shown.
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"accessors": [
3+
{
4+
"bufferView": 2,
5+
"componentType": 5126,
6+
"count": 1132,
7+
"max": [4, 3, 14],
8+
"min": [-4, -3, 0],
9+
"type": "VEC3"
10+
},
11+
{
12+
"bufferView": 2,
13+
"byteOffset": 13584,
14+
"componentType": 5126,
15+
"count": 1132,
16+
"max": [1, 1, 1],
17+
"min": [-1, -1, -1],
18+
"type": "VEC3"
19+
},
20+
{
21+
"bufferView": 3,
22+
"componentType": 5126,
23+
"count": 1132,
24+
"max": [0, 0, 0, 1],
25+
"min": [0, 0, 0, 1],
26+
"type": "VEC4"
27+
},
28+
{
29+
"bufferView": 3,
30+
"byteOffset": 18112,
31+
"componentType": 5126,
32+
"count": 1132,
33+
"max": [1, 1, 1, 1],
34+
"min": [0, 0.19607843458652496, 0, 1],
35+
"type": "VEC4"
36+
},
37+
{
38+
"bufferView": 1,
39+
"componentType": 5126,
40+
"count": 1132,
41+
"max": [0, 0],
42+
"min": [0, 0],
43+
"type": "VEC2"
44+
},
45+
{
46+
"bufferView": 0,
47+
"componentType": 5125,
48+
"count": 2484,
49+
"max": [1131],
50+
"min": [0],
51+
"type": "SCALAR"
52+
}
53+
],
54+
"asset": {
55+
"extras": {
56+
"author": "Acemir Sousa Mendes (https://sketchfab.com/acemir)",
57+
"license": "CC-BY-NC-SA-4.0 (http://creativecommons.org/licenses/by-nc-sa/4.0/)",
58+
"source": "https://sketchfab.com/3d-models/billy-blaze-aka-commander-keen-voxel-fanart-a64810a4026b445e9633ec758c6c969c",
59+
"title": "Billy Blaze aka Commander Keen (Voxel FanArt)"
60+
},
61+
"generator": "Sketchfab-6.24.0",
62+
"version": "2.0"
63+
},
64+
"bufferViews": [
65+
{
66+
"buffer": 0,
67+
"byteLength": 9936,
68+
"byteOffset": 0,
69+
"name": "floatBufferViews",
70+
"target": 34963
71+
},
72+
{
73+
"buffer": 0,
74+
"byteLength": 9056,
75+
"byteOffset": 9936,
76+
"byteStride": 8,
77+
"name": "floatBufferViews",
78+
"target": 34962
79+
},
80+
{
81+
"buffer": 0,
82+
"byteLength": 27168,
83+
"byteOffset": 18992,
84+
"byteStride": 12,
85+
"name": "floatBufferViews",
86+
"target": 34962
87+
},
88+
{
89+
"buffer": 0,
90+
"byteLength": 36224,
91+
"byteOffset": 46160,
92+
"byteStride": 16,
93+
"name": "floatBufferViews",
94+
"target": 34962
95+
}
96+
],
97+
"buffers": [
98+
{
99+
"byteLength": 82384,
100+
"uri": "scene.bin"
101+
}
102+
],
103+
"materials": [
104+
{
105+
"doubleSided": true,
106+
"emissiveFactor": [0, 0, 0],
107+
"name": "Scene_-_Root",
108+
"pbrMetallicRoughness": {
109+
"baseColorFactor": [0.5, 0.5, 0.5, 1],
110+
"metallicFactor": 0,
111+
"roughnessFactor": 0.59999999999999998
112+
}
113+
}
114+
],
115+
"meshes": [
116+
{
117+
"primitives": [
118+
{
119+
"attributes": {
120+
"COLOR_0": 3,
121+
"NORMAL": 1,
122+
"POSITION": 0,
123+
"TANGENT": 2,
124+
"TEXCOORD_0": 4
125+
},
126+
"indices": 5,
127+
"material": 0,
128+
"mode": 4
129+
}
130+
]
131+
}
132+
],
133+
"nodes": [
134+
{
135+
"children": [1],
136+
"name": "RootNode (gltf orientation matrix)",
137+
"rotation": [-0.70710678118654746, -0, -0, 0.70710678118654757]
138+
},
139+
{
140+
"children": [2],
141+
"name": "RootNode (model correction matrix)"
142+
},
143+
{
144+
"children": [3],
145+
"name": "Geode"
146+
},
147+
{
148+
"mesh": 0,
149+
"name": ""
150+
}
151+
],
152+
"scene": 0,
153+
"scenes": [
154+
{
155+
"name": "OSG_Scene",
156+
"nodes": [0]
157+
}
158+
]
159+
}
Binary file not shown.
68.2 KB
Loading
79.3 KB
Loading
81.3 KB
Loading
68.6 KB
Loading
69.9 KB
Loading
75.3 KB
Loading
11.2 KB
Binary file not shown.
78.6 KB
Loading

0 commit comments

Comments
 (0)