diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..aa9eab4 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,17 @@ +{ + "tabWidth": 2, + "endOfLine": "auto", + "printWidth": 120, + "proseWrap": "preserve", + "quoteProps": "as-needed", + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "useTabs": false, + "arrowParens": "always", + "bracketSpacing": true, + "eslintIntegration": true, + "vueIndentScriptAndStyle": false + } + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 19dc5e7..df05091 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "three-toy", "version": "0.0.0", "dependencies": { + "dat.gui": "^0.7.9", "gsap": "^3.12.5", "three": "^0.164.1", "vue": "^3.4.21", @@ -788,6 +789,11 @@ "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, + "node_modules/dat.gui": { + "version": "0.7.9", + "resolved": "https://registry.npmmirror.com/dat.gui/-/dat.gui-0.7.9.tgz", + "integrity": "sha512-sCNc1OHobc+Erc1HqiswYgHdVNpSJUlk/Hz8vzOCsER7rl+oF/4+v8GXFUyCgtXpoCX6+bnmg07DedLvBLwYKQ==" + }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz", diff --git a/package.json b/package.json index e618631..ac8205b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "dat.gui": "^0.7.9", "gsap": "^3.12.5", "three": "^0.164.1", "vue": "^3.4.21", diff --git a/public/gltf/eric_tripod_table_lamp_white.glb b/public/gltf/eric_tripod_table_lamp_white.glb new file mode 100644 index 0000000..b66695e Binary files /dev/null and b/public/gltf/eric_tripod_table_lamp_white.glb differ diff --git "a/src/views/works/\345\244\226\351\203\250\346\250\241\345\236\213\345\257\274\345\205\245.vue" "b/src/views/works/\345\244\226\351\203\250\346\250\241\345\236\213\345\257\274\345\205\245.vue" new file mode 100644 index 0000000..a2d9721 --- /dev/null +++ "b/src/views/works/\345\244\226\351\203\250\346\250\241\345\236\213\345\257\274\345\205\245.vue" @@ -0,0 +1,99 @@ + + + diff --git a/vite.config.js b/vite.config.js index 28c5e0f..3d8e962 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,9 +6,10 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ base: './', - plugins: [ - vue(), - ], + optimizeDeps: { + include: ['dat.gui'] + }, + plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url))