Skip to content

Commit

Permalink
fix: add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vis97c committed May 30, 2024
1 parent 9137356 commit 9e6b868
Show file tree
Hide file tree
Showing 10 changed files with 1,104 additions and 2,416 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineNuxtConfig({

| Name | Type | Default | Description |
| ---- | ------ | ---------------- | ----------------------------------- |
| base | string | "/api/countries" | Base path to be user on nuxt server |
| base | string | "/api/countries" | Base path to be used on nuxt server |

## Development

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"packageManager": "[email protected]",
"engines": {
"node": ">=18",
"yarn": ">=1.22.4"
Expand Down Expand Up @@ -66,7 +67,6 @@
"@nuxt/test-utils": "^3.8.1",
"@open-xamu-co/eslint-config": "^3.0.0",
"@open-xamu-co/ui-nuxt": "^3.0.0-next.2",
"@open-xamu-co/ui-styles": "^3.0.0-next.4",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/lodash": "^4.14.196",
Expand Down
7 changes: 7 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
</template>

<style>
body {
overflow: visible;
height: auto;
}
#appex {
min-height: 100%;
display: flex;
Expand All @@ -18,4 +22,7 @@
.view {
width: 100%;
}
.avatar {
border-radius: 0;
}
</style>
3 changes: 2 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default defineNuxtConfig({
{ name: "robots", content: "index, follow" },
],
link: [
{ rel: "icon", type: "image/png", href: "/favicon.png" },
{
rel: "preconnect",
href: "https://fonts.googleapis.com/",
Expand All @@ -35,6 +36,7 @@ export default defineNuxtConfig({
{ rel: "preconnect", href: "https://unpkg.com/", crossorigin: "anonymous" },
{ rel: "dns-prefetch", href: "https://unpkg.com/" },
...[
"https://unpkg.com/@open-xamu-co/ui-styles@^3.0.0-next.4/dist/index.min.css",
"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,500;0,700;0,900;1,300;1,500;1,700;1,900&display=swap",
"https://unpkg.com/@fortawesome/fontawesome-free@^6/css/all.min.css",
"https://unpkg.com/sweetalert2@^11/dist/sweetalert2.min.css",
Expand All @@ -49,7 +51,6 @@ export default defineNuxtConfig({
scrollBehaviorType: "smooth",
},
},
css: ["@open-xamu-co/ui-styles/dist/index.min.css"],
modules: ["../src/module", "@open-xamu-co/ui-nuxt"],
countries: { base: "/api/v1" },
xamu: {
Expand Down
3 changes: 0 additions & 3 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"build": "nuxi build",
"generate": "nuxi generate"
},
"dependencies": {
"@open-xamu-co/ui-styles": "*"
},
"devDependencies": {
"nuxt": "latest"
}
Expand Down
5 changes: 4 additions & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<div class="view">
<div class="view-item --pY-60">
<div class="holder flx --flxColumn --flx-center-start --gap-30">
<h1 class="--txtColor">Countries API</h1>
<h1 class="flx --flxRow --flx-start-center">
<img class="avatar --size-sm --bgColor-none" src="/countries-api.png" />
<span class="--txtColor">Countries API</span>
</h1>
<div class="txt --gaping-5">
<p class="--txtColor-dark5">
Public REST API with countries data, based on
Expand Down
Binary file added playground/public/countries-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added playground/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler"
"moduleResolution": "Bundler",
"lib": [
"ESNext",
"ESNext.asynciterable",
"DOM",
"DOM.Iterable"
]
}
}
Loading

0 comments on commit 9e6b868

Please sign in to comment.