Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/modules/blob/DataInspector.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script setup>
/** Vendor */
import { DateTime } from "luxon"
import iconv from "iconv-lite"

/** Store */
import { useSettingsStore } from "@/store/settings"
Expand Down Expand Up @@ -63,7 +62,7 @@ const hexToUint8Array = (hex) => {
}

const decode = (bytes) => {
return iconv.decode(new Uint8Array(bytes.map((b) => parseInt(`0x${b}`, 16))), "IBM437")
return bytes.map((b) => String.fromCharCode(null, new Uint8Array([parseInt(`0x${b}`, 16)]))).join("")
}
</script>

Expand Down
7 changes: 2 additions & 5 deletions components/modules/blob/HexViewer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup>
/** Vendor */
import iconv from "iconv-lite"

/** Store */
import { useSettingsStore } from "@/store/settings"
const settingsStore = useSettingsStore()
Expand Down Expand Up @@ -151,10 +148,10 @@ const onPointerLeave = () => {

const decode = (byte) => {
const charCode = parseInt(`0x${byte}`, 16)
if (charCode >= 0 && charCode <= 31) {
if ((charCode >= 0 && charCode <= 31) || (charCode >= 127 && charCode <= 159)) {
return "."
} else {
return iconv.decode(new Uint8Array([charCode]), settingsStore.hex.characterSet)
return String.fromCharCode.apply(null, new Uint8Array([charCode]))
}
}
</script>
Expand Down
250 changes: 125 additions & 125 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,148 +5,148 @@ import topLevelAwait from "vite-plugin-top-level-await"
import path from "path"

export default defineNuxtConfig({
modules: ["nuxt-simple-sitemap", "@pinia/nuxt", "nuxt-og-image"],
modules: ["@pinia/nuxt", "nuxt-og-image", "@nuxtjs/sitemap"],

site: {
url: "https://celenium.io",
site: {
url: "https://celenium.io",
},

sitemap: {
xsl: false,
sitemap: {
xsl: false,
},

routeRules: {
"/node": {
ssr: false,
},
"/": {
sitemap: {
changefreq: "daily",
priority: 1,
},
},
"/blocks": {
sitemap: {
changefreq: "daily",
priority: 0.9,
},
},
"/namespaces": {
sitemap: {
changefreq: "daily",
priority: 0.8,
},
},
"/txs": {
sitemap: {
changefreq: "daily",
priority: 0.7,
},
},
"/addresses": {
sitemap: {
changefreq: "daily",
priority: 0.6,
},
},
"/gas": {
sitemap: {
changefreq: "daily",
priority: 0.5,
},
},
"/namespaces/treemap": {
sitemap: {
changefreq: "weekly",
priority: 0.4,
},
},
routeRules: {
"/node": {
ssr: false,
},
"/": {
sitemap: {
changefreq: "daily",
priority: 1,
},
},
"/blocks": {
sitemap: {
changefreq: "daily",
priority: 0.9,
},
},
"/namespaces": {
sitemap: {
changefreq: "daily",
priority: 0.8,
},
},
"/txs": {
sitemap: {
changefreq: "daily",
priority: 0.7,
},
},
"/addresses": {
sitemap: {
changefreq: "daily",
priority: 0.6,
},
},
"/gas": {
sitemap: {
changefreq: "daily",
priority: 0.5,
},
},
"/namespaces/treemap": {
sitemap: {
changefreq: "weekly",
priority: 0.4,
},
},
},

runtimeConfig: {
public: {
AMP: process.env.AMP,
},
runtimeConfig: {
public: {
AMP: process.env.AMP,
},
},

app: {
head: {
htmlAttrs: {
lang: "en",
},
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1" },
{
name: "lang",
content: "en",
},
],
link: [
{
id: "favicon",
rel: "icon",
type: "image/png",
},
{
rel: "preconnect",
href: "https://fonts.googleapis.com",
},
{
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: "anonymous",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
],
},
app: {
head: {
htmlAttrs: {
lang: "en",
},
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1" },
{
name: "lang",
content: "en",
},
],
link: [
{
id: "favicon",
rel: "icon",
type: "image/png",
},
{
rel: "preconnect",
href: "https://fonts.googleapis.com",
},
{
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: "anonymous",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap",
onload: "this.onload=null;this.rel='stylesheet'",
},
],
},
},

css: ["@/assets/styles/base.scss", "@/assets/styles/flex.scss", "@/assets/styles/text.scss"],
css: ["@/assets/styles/base.scss", "@/assets/styles/flex.scss", "@/assets/styles/text.scss"],

pinia: {
autoImports: ["defineStore"],
pinia: {
autoImports: ["defineStore"],
},

ogImage: {
fonts: ["Inter:400", "Inter:600", "IBM+Plex+Mono:400"],
ogImage: {
fonts: ["Inter:400", "Inter:600", "IBM+Plex+Mono:400"],
},

devtools: {
enabled: false,
devtools: {
enabled: false,
},

vite: {
define: {
global: "globalThis",
},
resolve: {
alias: {
"unenv/runtime/node/buffer/index/": path.resolve(__dirname, "./node_modules/buffer/index"),
},
},
plugins: [wasm(), topLevelAwait(), nodePolyfills()],
worker: {
format: "es",
plugins: () => [wasm(), topLevelAwait()],
},
vite: {
define: {
global: "globalThis",
},
resolve: {
alias: {
"unenv/runtime/node/buffer/index/": path.resolve(__dirname, "./node_modules/buffer/index"),
},
},
plugins: [wasm(), topLevelAwait(), nodePolyfills()],
worker: {
format: "es",
plugins: () => [wasm(), topLevelAwait()],
},
},

compatibilityDate: "2025-04-02",
})
compatibilityDate: "2025-04-02",
})
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
},
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxtjs/sitemap": "7.2.10",
"@unhead/vue": "^2.0.0-rc.1",
"cross-env": "^7.0.3",
"nuxt": "3.12.4",
"nuxt-og-image": "3.0.0-rc.52",
"nuxt-simple-sitemap": "^4.2.0",
"nuxt": "3.16.2",
"nuxt-og-image": "5.1.1",
"sass": "1.66.1",
"sass-loader": "13.3.2",
"unenv": "^1.9.0",
"unstorage": "^1.0.0",
"vite-plugin-top-level-await": "^1.4.4",
"vite-plugin-wasm": "^3.3.0"
},
Expand All @@ -29,7 +31,7 @@
"@codemirror/lang-json": "^6.0.1",
"@keplr-wallet/cosmos": "^0.12.70",
"@openzeppelin/merkle-tree": "^1.0.6",
"@pinia/nuxt": "0.4.11",
"@pinia/nuxt": "0.11.0",
"@sentry/vue": "^8.50.0",
"@vueuse/core": "^10.9.0",
"buffer": "^6.0.3",
Expand All @@ -39,13 +41,11 @@
"d3-geo": "^3.1.1",
"d3-hierarchy": "^3.1.2",
"focus-trap": "7.5.2",
"iconv-lite": "^0.6.3",
"js-sha256": "^0.11.0",
"lean-qr": "^2.3.2",
"long": "^5.2.3",
"luxon": "3.4.3",
"nuxt-site-config": "^2.1.2",
"pinia": "2.1.6",
"pinia": "3.0.2",
"protobufjs": "^7.2.6",
"qrcode": "^1.5.3",
"uuid": "9.0.1",
Expand Down
Loading