Supergrammer / supergrammer.github.io

Supergrammer GitHub Pages Repository
0 stars 0 forks source link

Vuetify ์ถ”๊ฐ€ #3

Closed Supergrammer closed 1 year ago

Supergrammer commented 1 year ago

๐Ÿ’ฃ ์ด์Šˆ (Issue) :

Vuetify ๋ฐ Vuetify ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€

๐Ÿ“‹ ์—…๋ฌด ์ฒดํฌ๋ฆฌ์ŠคํŠธ (Task Checklist) :

์—ฌ๊ธฐ์— ์—…๋ฌด ์ฒดํฌ๋ฆฌ์ŠคํŠธ๋ฅผ ์ž‘์„ฑํ•˜์„ธ์š”.

  • [x] Vuetify ์ถ”๊ฐ€
  • [x] Vuetify submodule (icon ๋“ฑ) ์ถ”๊ฐ€

๐Ÿ“œ ์ƒ์„ธ ์„ค๋ช… (Description) :

Vue project ์— Vuetify ๋ฐ Vuetify ์˜ submodule ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ์ž‘์—…

๐Ÿ”— ๊ด€๋ จ ์ด์Šˆ (Related Issues) :

์—ฌ๊ธฐ์— ๊ด€๋ จ ์ด์Šˆ์— ๋Œ€ํ•ด ๊ธฐ์ˆ ํ•˜๊ฑฐ๋‚˜ ๋งํฌ๋ฅผ ์ฒจ๋ถ€ํ•˜์„ธ์š”.

๐Ÿ“š ์ฐธ๊ณ  (Reference) :

https://github.com/Supergrammer/JIB-SEE/issues/1


โœ๏ธ ์ฒ˜๋ฆฌ ๋‚ด์šฉ

ํ•ด๋‹น ์ด์Šˆ ์ฒ˜๋ฆฌ ํ›„, ์ฒ˜๋ฆฌ ๋‚ด์šฉ์— ๋Œ€ํ•ด ๊ธฐ์ˆ ํ•˜๋Š” ๋ถ€๋ถ„์ž…๋‹ˆ๋‹ค. ์ด์Šˆ ์ฒ˜๋ฆฌ ํ›„ ์ž‘์„ฑํ•ด ์ฃผ์„ธ์š”

Vuetify ์ถ”๊ฐ€

% npm i --save vuetify@^3.0.6
import { createVuetify } from "vuetify";

import * as components from "vuetify/components";
import * as directives from "vuetify/directives";

import { fa } from "vuetify/iconsets/fa"

import "vuetify/styles";

const vuetify = createVuetify({
    components,
    directives,

    icons: {
        defaultSet: "fa",
        sets: { fa },
    }
});

export default vuetify;
import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "@/App.vue";
import router from "@/router";
import vuetify from "@/plugins/vuetify";

const app = createApp(App);
const pinia = createPinia();

app.use(router);
app.use(pinia);
app.use(vuetify);

app.mount("#app");

Vuetify Icons module ์ถ”๊ฐ€

# Material Design Icon ์ถ”๊ฐ€
% npm i --save @mdi/font

# Fontawesome Icon ์ถ”๊ฐ€
% npm i --save @fortawesome/fontawesome-free
...
import "@mdi/font/css/materialdesignicons.css"
import "@fortawesome/fontawesome-free/css/all.css"
...

Supergrammer commented 1 year ago

No more Issue :)