-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,839 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: CI | |
on: | ||
pull_request: | ||
branches: main | ||
push: | ||
push: | ||
branches: main | ||
jobs: | ||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
"IIFE", | ||
"keyof", | ||
"Metiral", | ||
"nums", | ||
"Ovride", | ||
"picocolors", | ||
"preinstall", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
npx pnpm -F ranuts build && pnpm -F ranui build && pnpm -F docs build | ||
npx pnpm -F ranuts build && pnpm -F ranui build && pnpm -F ranui-react build && pnpm -F docs build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pnpm -F ranuts test | ||
pnpm -F ranuts build | ||
pnpm -F ranui test | ||
pnpm -F ranui test | ||
pnpm -F ranui-react test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
export const GTAG = 'https://www.googletagmanager.com/gtag/js?id=G-0MPS5WH1C0' | ||
|
||
export const GOOGLE_ANALYSE = `;window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);};gtag('js', new Date());gtag('config', 'G-0MPS5WH1C0');` | ||
|
||
export const BD_ANALYSE = ` | ||
;var _hmt = _hmt || []; | ||
(function() { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?3bc20bd8070ce614078a36c686209456"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
` | ||
|
||
export const PREVIEW_CODE = ` | ||
window.uploadFile = (name) => { | ||
const preview = document.getElementById(name) | ||
const uploadFile = document.createElement('input') | ||
uploadFile.setAttribute('type', 'file') | ||
uploadFile.click() | ||
uploadFile.onchange = (e) => { | ||
const { files = [] } = uploadFile | ||
if (preview) { | ||
if (files && files.length > 0) { | ||
preview.setAttribute('src', '') | ||
const file = files[0] | ||
const url = URL.createObjectURL(file) | ||
preview.setAttribute('src', url) | ||
} | ||
} | ||
} | ||
} | ||
` | ||
|
||
export const DESCRIPTION = | ||
'Based on web component library, common function library utils, personal article record and so on' | ||
|
||
export const HOME = 'https://chaxus.github.io/ran/' | ||
|
||
export const BASE_PATH = '/ran/' | ||
|
||
export const HOME_ICON = `${HOME}home.svg` | ||
|
||
export const UTILS_PATH = `${HOME}src/ranuts/utils/` | ||
|
||
export const RANUI_PATH = `${HOME}src/ranui/` | ||
|
||
export const ARTICLE_PATH = `${HOME}src/article/designMode.html` | ||
|
||
export const KEY_WORDS = | ||
'ran,component,components,ui,design,ranui,web-components,javascript,typescript,js' | ||
|
||
export const GITHUB = 'https://github.com/chaxus/ran' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.