Skip to content

Commit

Permalink
Disable dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
junian committed May 3, 2024
1 parent 5c6b01c commit 599206c
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 41 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Resume.md
# Markdown Resume

Write your Resume in Markdown. Available to anyone, optimized for dev.

Start writing on [juniansoft.com/resume.md](https://www.juniansoft.com/resume.md/)
Start writing on [juniansoft.com/markdown-resume](https://www.juniansoft.com/markdown-resume/)

## About

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "resume-md",
"name": "markdown-resume",
"private": true,
"packageManager": "pnpm@8.15.6",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions site/configs/pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const pwa: ModuleOptions = {
manifest: {
id: scope,
scope,
name: "Resume.md",
short_name: "Resume.md",
name: "Markdown Resume",
short_name: "markdown-resume",
icons: [
{
src: "/pwa-192x192.png",
Expand Down
10 changes: 5 additions & 5 deletions site/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default defineNuxtConfig({
// baseURL: '/'
// Else if host it on https://example.com/resume
// baseURL: '/resume/'
baseURL: '/resume.md/', // baseURL: '/<repository>/'
baseURL: '/markdown-resume/', // baseURL: '/<repository>/'
buildAssetsDir: 'assets', // don't use "_" at the begining of the folder name to avoids
head: {
viewport: "width=device-width,initial-scale=1",
Expand All @@ -56,17 +56,17 @@ export default defineNuxtConfig({
],
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "application-name", content: "Resume.md" },
{ name: "apple-mobile-web-app-title", content: "Resume.md" },
{ name: "application-name", content: "Markdown Resume" },
{ name: "apple-mobile-web-app-title", content: "Markdown Resume" },
{ name: "msapplication-TileColor", content: "#fff" },
{ property: "og:url", content: "https://www.juniansoft.com/resume.md/" },
{ property: "og:url", content: "https://www.juniansoft.com/markdown-resume/" },
{ property: "og:type", content: "website" }
]
}
},

site: {
url: "https://www.juniansoft.com/resume.md/"
url: "https://www.juniansoft.com/markdown-resume/"
},

pwa,
Expand Down
2 changes: 1 addition & 1 deletion site/src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script setup lang="ts">
const { t, locale } = useI18n();
const colorMode = useColorMode();
const preferredDark = usePreferredDark();
const preferredDark = { value: false }; //usePreferredDark();
useHead({
title: t("head.title"),
Expand Down
6 changes: 5 additions & 1 deletion site/src/components/shared/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,24 @@
<slot name="middle" />

<div hstack>
<!--
<NavItem
mr-3
:link="$nuxt.$localePath('/resumes')"
:label="$t('resumes.my_resumes')"
icon="i-ep:menu"
/>
<ToggleLang mr-1.5 />
-->

<slot name="tail" />

<!--
<ToggleDark />
-->
<a
class="round-btn"
href="http://github.com/junian/resume.md/"
href="http://github.com/junian/markdown-resume/"
target="_blank"
rel="nofollow noopener"
>
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/shared/icons/BrandName.vue
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<template><span text-brand>Resume</span>.md</template>
<template><span text-brand>Markdown</span> Resume</template>
12 changes: 1 addition & 11 deletions site/src/components/shared/icons/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
<template>
<svg
width="1.7em"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
:fill="$colorMode?.preference === 'dark' ? '#e2e8f0' : '#1e293b'"
>
<circle cx="15.672" cy="15.184" r="11.544" fill-opacity="0.15" />
<path
d="M11.244 30.525c.532.036.656-.003 1.038-.165.241-.138.38-.35.499-.677l2.204-6.471c.068-.536 1.211-1.736 2.556-1.608.093.009.172.073.26.115 3.57 1.694 9.404 3.535 11.036.032.054-.116.099-.21.088-.324-.014-.154-.16-.311-.218-.386l-9.194-11.43 2.554-7.6a.456.456 0 0 0 .003-.288.394.394 0 0 0-.344-.26.503.503 0 0 0-.376.167L4.001 19.347c-.614.699-.878.905-.925 1.864-.039.79.357 1.251.646 1.623l6.538 7.135c.236.298.584.53.984.556Zm7.953-16.495a1.783 1.783 0 1 1-.003 3.565 1.783 1.783 0 0 1 .003-3.565Zm.294.529a.902.902 0 1 1 0 1.804.902.902 0 0 1 0-1.804Z"
/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>
</template>
4 changes: 2 additions & 2 deletions site/src/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lang: Language
toggle_dark: Toggle dark mode

head:
title: Resume.md - Free Online Markdown Resume Maker
title: Markdown Resume - Free Online Markdown Resume Maker
desc: Free online resume maker, allows you to create your resume in minutes with Markdown!
keywords: resume maker, cv maker, curriculum vitae maker, markdown resume, resume.md

Expand All @@ -12,7 +12,7 @@ landing:
start: Create My Resume
feats:
- title: Simple and Powerful
items: Manage multiple resumes<br>Real-time preview<br>Export to PDF format<br>Fully customizable<br>Pick fonts and add icons<br>And <a href="https://github.com/junian/resume.md#features" target="_blank">more features</a>
items: Manage multiple resumes<br>Real-time preview<br>Export to PDF format<br>Fully customizable<br>Pick fonts and add icons<br>And <a href="https://github.com/junian/markdown-resume#features" target="_blank">more features</a>
- title: Privacy First
items: Open source and free<br>Data are saved locally<br>No login or registration required<br>No user tracking<br>No ads

Expand Down
4 changes: 2 additions & 2 deletions site/src/i18n/sp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lang: Idioma
toggle_dark: Cambiar tema claro/oscuro

head:
title: Resume.md - Generador de CV online GRATUITO!!
title: Markdown Resume - Generador de CV online GRATUITO!!
desc: El creador de currículums vitae en línea gratuito le permite crear su currículum en minutos con Markdown!
keywords: generador curriculum, generador cv, generador curriculum vitae, curriculum markdown, markdown cv

Expand All @@ -12,7 +12,7 @@ landing:
start: Crear My Resumen
feats:
- title: Simple y poderoso
items: Administra multiples curriculums con <br>Vista previa en tiempo real<br>Exportar a PDF format<br>Completamente configurable<br>Elige fuentes y agrega íconos<br>Y <a href="https://github.com/junian/resume.md#features" target="_blank">más funciones</a>
items: Administra multiples curriculums con <br>Vista previa en tiempo real<br>Exportar a PDF format<br>Completamente configurable<br>Elige fuentes y agrega íconos<br>Y <a href="https://github.com/junian/markdown-resume#features" target="_blank">más funciones</a>
- title: Primero tu privacidad
items: Open source, libre y gratuito<br>Información guardada en tu equipo<br>No necesita que te registres<br>No realizamos ningún trackeo ni mostramos publicidad<br>No ads

Expand Down
4 changes: 2 additions & 2 deletions site/src/i18n/zh-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lang: 语言
toggle_dark: 切换深色模式

head:
title: Resume.md - 免费的在线简历制作工具
title: Markdown Resume - 免费的在线简历制作工具
desc: 免费的在线简历制作工具,使用 Markdown 来轻松制作您的简历!
keywords: Markdown 简历, 简历制作, 在线简历

Expand All @@ -12,7 +12,7 @@ landing:
start: 开始制作简历
feats:
- title: 简单且强大
items: 创建并管理多份简历<br>实时预览<br>导出为 PDF 格式<br>可定制程度高<br>轻松切换字体和添加图标<br>以及<a href="https://github.com/junian/resume.md#features" target="_blank">更多特性</a>
items: 创建并管理多份简历<br>实时预览<br>导出为 PDF 格式<br>可定制程度高<br>轻松切换字体和添加图标<br>以及<a href="https://github.com/junian/markdown-resume#features" target="_blank">更多特性</a>
- title: 隐私优先
items: 开源免费<br>数据保存在本地<br>无需登录或注册<br>没有用户追踪<br>没有广告

Expand Down
2 changes: 1 addition & 1 deletion site/src/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://www.juniansoft.com/resume.md/sitemap.xml
Sitemap: https://www.juniansoft.com/markdown-resume/sitemap.xml
4 changes: 2 additions & 2 deletions site/src/utils/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export const setDynamicCss = (styles: ResumeStyles, id: string) => {
lineHeightCss(styles, pageId) +
(id === "preview" ? paperCss(styles) : "");

injectCSS(content, `resume-md-dynamic-${id}`);
injectCSS(content, `markdown-resume-dynamic-${id}`);
};

export const setBackboneCss = (css: string, id: string) => {
if (id !== "preview") css = css.replaceAll(PREVIEW_SELECTOR, `#vue-smart-pages-${id}`);

injectCSS(css, `resume-md-backbone-${id}`);
injectCSS(css, `markdown-resume-backbone-${id}`);
};
16 changes: 8 additions & 8 deletions site/src/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { downloadFile, uploadFile, copy, isClient } from "@renovamen/utils";
import { DEFAULT_STYLES, DEFAULT_NAME, DEFAULT_MD_CONTENT, DEFAULT_CSS_CONTENT } from ".";
import type { ResumeStorage, ResumeStorageItem, ResumeStyles } from "~/types";

const RESUMEMD_KEY = "resumemd_data";
const MARKDOWN_RESUME_KEY = "MARKDOWN_RESUME_data";

export const getStorage = async () =>
isClient ? localForage.getItem<ResumeStorage>(RESUMEMD_KEY) : null;
isClient ? localForage.getItem<ResumeStorage>(MARKDOWN_RESUME_KEY) : null;

export const getResumeList = async () => {
const storage = (await getStorage()) || {};
Expand Down Expand Up @@ -65,7 +65,7 @@ export const saveResume = async (id: string, resume: ResumeStorageItem) => {
const storage = (await getStorage()) || {};
storage[id] = resume;

await localForage.setItem(RESUMEMD_KEY, storage);
await localForage.setItem(MARKDOWN_RESUME_KEY, storage);

const toast = useToast();
toast.save();
Expand Down Expand Up @@ -97,7 +97,7 @@ export const newResume = async () => {
*/
export const saveResumesToLocal = async () => {
const storage = (await getStorage()) || {};
downloadFile("resumemd_data.json", JSON.stringify(storage));
downloadFile("MARKDOWN_RESUME_data.json", JSON.stringify(storage));
};

/**
Expand Down Expand Up @@ -150,7 +150,7 @@ export const importResumesFromLocal = async (callback?: () => void) => {
...data
};

await localForage.setItem(RESUMEMD_KEY, newStorage);
await localForage.setItem(MARKDOWN_RESUME_KEY, newStorage);
toast.import(true);

callback && callback();
Expand All @@ -167,7 +167,7 @@ export const deleteResume = async (id: string) => {
const name = storage[id].name;
delete storage[id];

await localForage.setItem(RESUMEMD_KEY, storage);
await localForage.setItem(MARKDOWN_RESUME_KEY, storage);

toast.delete(name);
}
Expand Down Expand Up @@ -200,7 +200,7 @@ export const duplicateResume = async (id: string) => {
resume.update = newId;
storage[newId] = resume;

await localForage.setItem(RESUMEMD_KEY, storage);
await localForage.setItem(MARKDOWN_RESUME_KEY, storage);
toast.duplicate(oldName);
}
};
Expand All @@ -209,7 +209,7 @@ export const renameResume = async (id: string, name: string) => {
const storage = (await getStorage()) || {};
storage[id].name = name;

await localForage.setItem(RESUMEMD_KEY, storage);
await localForage.setItem(MARKDOWN_RESUME_KEY, storage);

const toast = useToast();
toast.save();
Expand Down

0 comments on commit 599206c

Please sign in to comment.