Skip to content

Commit

Permalink
feat: flag
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdenecker committed Aug 11, 2023
1 parent 4ad3044 commit 3f939c4
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
10 changes: 10 additions & 0 deletions components/content/ProseCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ const languageMap: Record<
background: "linear-gradient(to bottom right, #2F6E9D, #F6D652)",
color: "white",
},
ruby:{
text: "ruby",
background: "#A41600",
color: "white",
},
js:{
text: "JS",
background: "#E9D34B",
color: "black",
}
};

const languageText = computed(() =>
Expand Down
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
import vuetify from 'vite-plugin-vuetify'

import { createResolver } from '@nuxt/kit'

const { resolve } = createResolver(import.meta.url)
Expand All @@ -17,11 +17,11 @@ export default defineNuxtConfig({
app: {
baseURL: '/Wasm4Learn/',
head: {
title: 'R WASM by IFB',
title: 'Wasm4Learn',
meta: [
{
name: 'description',
content: 'R WASM platform to learn R with IFB'
content: 'An interactive tutorial platform to introduce you to the first commands in different languages like R and Python'
}
],
script: [
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"ace-builds": "^1.23.4",
"ace-code": "^1.23.4",
"buffer": "^6.0.3",
"flag-icons": "^6.9.3",
"gh-pages": "^5.0.0",
"markdown-it": "^13.0.1",
"nuxt-content-assets": "^1.3.2",
Expand Down
5 changes: 2 additions & 3 deletions pages/[lang]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ export default {
const route = useRoute();
let lang = route.params.lang;
const contentFolder = await queryContent("/" + lang).find();
const { data: navigation } = await useAsyncData("navigation", () =>
fetchContentNavigation("/" + lang)
fetchContentNavigation("/" + lang + "/")
);
return { contentFolder, navigation };
return { navigation };
},
methods: {
changePath(pathParent, id) {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2804,6 +2804,11 @@
"locate-path" "^5.0.0"
"path-exists" "^4.0.0"

"flag-icons@^6.9.3":
"integrity" "sha512-HIU4V8342pmBjk+zlvq0jGyHEifyP9976ynzQw8sLeONNcyMxW5I+NWY9OWGMrd9lkFjgfcnvRdD3MGd1ihHzQ=="
"resolved" "https://registry.npmjs.org/flag-icons/-/flag-icons-6.9.3.tgz"
"version" "6.9.3"

"flat@^5.0.2":
"integrity" "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="
"resolved" "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz"
Expand Down

0 comments on commit 3f939c4

Please sign in to comment.