Skip to content

Commit ea238cc

Browse files
authored
Merge pull request #13 from code-hike/x-mdx
Refactor all the things
2 parents 44ce65c + 812d850 commit ea238cc

File tree

179 files changed

+3712
-4792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+3712
-4792
lines changed

.gitmodules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "demos/the-x-in-mdx"]
2+
path = demos/the-x-in-mdx
3+
url = https://github.com/pomber/the-x-in-mdx
4+
[submodule "demos/hooks-talk-demo"]
5+
path = demos/hooks-talk-demo
6+
url = https://github.com/code-hike/hooks-talk-demo
7+
[submodule "demos/swr-minidocs-demo"]
8+
path = demos/swr-minidocs-demo
9+
url = https://github.com/code-hike/swr-minidocs-demo
10+
[submodule "demos/nextjs-post-demo"]
11+
path = demos/nextjs-post-demo
12+
url = https://github.com/code-hike/nextjs-post-demo

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 60,
3+
"semi": false,
4+
"arrowParens": "avoid"
5+
}

demos/hooks-talk-demo

Submodule hooks-talk-demo added at c1e27c3

demos/nextjs-post-demo

Submodule nextjs-post-demo added at 608a6da

demos/swr-minidocs-demo

Submodule swr-minidocs-demo added at 06b344e

demos/the-x-in-mdx

Submodule the-x-in-mdx added at d1ee69b

package.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,26 @@
22
"private": true,
33
"workspaces": {
44
"packages": [
5-
"packages/build",
6-
"packages/mini-browser",
7-
"packages/mini-frame",
8-
"packages/mini-browser",
9-
"packages/mini-editor",
10-
"packages/mini-terminal",
11-
"packages/player",
12-
"packages/scroller",
13-
"packages/sim-user",
14-
"packages/smooth-column",
15-
"packages/scroller",
5+
"packages/*",
6+
"demos/*",
167
"storybook",
178
"site"
189
]
1910
},
2011
"scripts": {
12+
"dev": "yarn workspace xmdx dev",
2113
"mbrowser": "yarn workspace @code-hike/mini-browser",
2214
"mframe": "yarn workspace @code-hike/mini-frame",
2315
"mterminal": "yarn workspace @code-hike/mini-terminal",
2416
"meditor": "yarn workspace @code-hike/mini-editor",
2517
"scroller": "yarn workspace @code-hike/scroller",
18+
"player": "yarn workspace @code-hike/player",
19+
"sim-user": "yarn workspace @code-hike/sim-user",
2620
"storybook": "yarn workspace storybook",
2721
"site": "yarn workspace site",
2822
"ch-build": "yarn workspace @code-hike/build",
29-
"watch-packages": "yarn mframe watch & yarn mterminal watch & yarn scroller watch & yarn mbrowser watch & yarn meditor watch",
30-
"build-packages": "yarn mframe build && yarn mterminal build && yarn scroller build && yarn mbrowser build && yarn meditor build",
23+
"watch-packages": "yarn mframe watch & yarn mterminal watch & yarn scroller watch & yarn sim-user watch & yarn player watch & yarn mbrowser watch & yarn meditor watch",
24+
"build-packages": "yarn mframe build && yarn mterminal build && yarn scroller build && yarn sim-user build && yarn player build && yarn mbrowser build && yarn meditor build",
3125
"build-site": "yarn build-packages && yarn workspace site export"
3226
},
3327
"dependencies": {

packages/mini-browser/package.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
{
22
"name": "@code-hike/mini-browser",
3-
"version": "0.0.1",
3+
"version": "0.2.1",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
7+
"files": [
8+
"dist"
9+
],
710
"scripts": {
811
"build": "ch-build",
912
"watch": "ch-build --watch"
1013
},
1114
"devDependencies": {
1215
"@code-hike/build": "0.0.1",
16+
"@types/react": "^16.9.38",
1317
"react": "^16.13.1"
1418
},
1519
"dependencies": {
16-
"@types/react": "^16.9.38",
17-
"@code-hike/mini-frame": "0.0.1"
20+
"@code-hike/mini-frame": "0.2.1"
1821
},
1922
"peerDependencies": {
2023
"react": ">=16.8"
24+
},
25+
"keywords": [
26+
"react"
27+
],
28+
"homepage": "https://codehike.org",
29+
"repository": "code-hike/codehike",
30+
"license": "MIT",
31+
"funding": {
32+
"type": "opencollective",
33+
"url": "https://opencollective.com/codehike"
2134
}
2235
}

packages/mini-browser/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See [codehike.org](https://codehike.org)

packages/mini-browser/src/mini-browser.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
height: 100%;
33
}
44

5-
.ch-mini-browser .ch-frame-content > iframe,
6-
.ch-mini-browser .ch-frame-content > video {
5+
.ch-mini-browser .ch-frame-content iframe,
6+
.ch-mini-browser .ch-frame-content video {
77
border: none;
88
position: absolute;
99
height: 100%;

0 commit comments

Comments
 (0)