Skip to content

Commit

Permalink
chore: add google analytics tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Sep 22, 2024
1 parent c76cd3e commit 077d0d4
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ jobs:
- name: Deploy to Zeabur
env:
PROJECT_ID: 66c211434b036528feae97f9
SERVICE_ID: 66c7f81dee400bba41e10297
ENVIRONMENT_ID: 66c21143812c32a5722b56ea
PROJECT_ID: 66e2444d723926097b6fd1c7
SERVICE_ID: 66e24642723926097b6fd1ed
ENVIRONMENT_ID: 66e2444dbc556e0e05b26a38
API_TOKEN: ${{ secrets.ZEABUR_TOKEN }}
run: |
curl --request POST \
--url https://gateway.zeabur.com/projects/${{ env.PROJECT_ID }}/services/${{ env.SERVICE_ID }}/deploy \
--header "Authorization: Bearer ${{ env.API_TOKEN }}" \
--form "[email protected]" \
--form "environment=${{ env.ENVIRONMENT_ID }}"
--form "environment=${{ env.ENVIRONMENT_ID }}" || true
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
Expand All @@ -52,4 +52,4 @@ jobs:
REMOTE_PORT: ${{ secrets.SERVER_PORT }}
SOURCE: ".output/public/"
ARGS: "-azr --delete"
TARGET: "/www/web/unjs/"
TARGET: "${{ secrets.SERVER_PATH }}/unjs/"
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# UnJS Website
## UnJS 中文文档

UnJS website [Content](./content/) and Design!
本项目由[简中文档](https://www.zhcndoc.com/)社区提供翻译和维护。

> https://unjs.io
## Development

- Clone repository
- Enable corepack with `corepack enable pnpm`
- Install dependencies with `pnpm install`
- Start development server with `pnpm dev`
上游仓库地址:https://github.com/unjs/website
25 changes: 25 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ useSeoMeta({
twitterSite: '@unjsio',
})
useHead({
htmlAttrs: {
lang: 'zh-CN',
},
script: [
{
'defer': '',
'src': 'https://analytics.ikxin.com/script.js',
'data-website-id': 'f0e90b0d-e086-4fdc-b173-de4857b71900',
},
{
async: '',
src: 'https://www.googletagmanager.com/gtag/js?id=G-HYH4TH7PWM',
},
{
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HYH4TH7PWM');
`,
},
],
})
useSchemaOrg([
defineWebSite({
potentialAction: [
Expand Down
2 changes: 1 addition & 1 deletion components/app/AppLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ defineProps<{
<template>
<div class="flex items-center gap-2 text-xl">
<img src="/favicon.svg" aria-hidden="true" class="w-7 h-7 rounded-[2px]">
<span class="font-bold mt-[2px] dark:text-gray-50" :class="contentClass">UnJS</span>
<span class="font-bold mt-[2px] dark:text-gray-50" :class="contentClass">UnJS 中文文档</span>
</div>
</template>
10 changes: 9 additions & 1 deletion content/_footer-license.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
title: Footer License
---

© 2023 [UnJS Team](https://github.com/unjs). [Website](https://unjs.zhcndoc.com) is licensed under [CC BY-NC-SA 4.0](https://github.com/unjs/website/blob/main/LICENSE)
<p>
<a target="_blank" href="https://www.zhcndoc.com?ref=unjs">
简中文档
</a>
-
<a rel="nofollow" target="_blank" href="https://beian.miit.gov.cn">
沪ICP备2024070610号-3
</a>
</p>
5 changes: 0 additions & 5 deletions zbpack.json

This file was deleted.

0 comments on commit 077d0d4

Please sign in to comment.