Commit Graph

147 Commits

Author SHA1 Message Date
ClarkXia 4601c028b5
chore: docs for new feature (#6013)
* chore: docs for new feature

* chore: package link
2023-03-06 15:03:10 +08:00
ClarkXia c23c10e4ff
Merge pull request #5950 from alibaba/release/next
Release 3.1.2
2023-03-02 14:58:36 +08:00
luhc228 dae91e218c
fix: request plugin type and usage (#5992)
* feat: add d.ts type

* fix: request type

* fix: useRequest usage

* chore: changeset

* feat: support useRequest param is string
2023-03-01 18:00:59 +08:00
ClarkXia 56fb406e8a
fix: import path of types and runtime (#5981)
* fix: import path of types and runtime

* chore: package.json

* chore: add changelog

* fix: typings

* fix: type declare
2023-02-28 15:08:10 +08:00
染陌同学 f7b5894063
docs: add appear doc (#5980)
* docs: add appear doc

* docs: modify VisibilityChange
2023-02-28 10:59:36 +08:00
ClarkXia 071a627dac
feat: support code spiliting strategy (#5957)
* feat: support code spiliting strategy

* fix: optimize code

* fix: compatible with splitChunks

* fix: compatible with splitChunks

* chore: default value chunks

* Update config.md

* Update routes.ts
2023-02-24 17:22:18 +08:00
ClarkXia 23504a77d4
docs: route limit (#5964) 2023-02-23 19:28:32 +08:00
染陌同学 e5df1cea7a
docs: modify docs of rax-migrate (#5907) 2023-02-21 19:01:45 -08:00
ClarkXia 6dfc4b00e1
Merge pull request #5875 from alibaba/release/next
Release 3.1.1
2023-02-20 11:52:53 +08:00
水澜 866ca0e2ab
feat: redirect imports (#5919)
* feat: redirect runtime imports

* chore: change log

* docs: add info for data loader
2023-02-15 19:35:02 -08:00
ClarkXia c63d120a9a
docs: import path of runtime types (#5899) 2023-02-13 14:32:27 +08:00
waynelee d70f5246f4
docs: don't import defineDataLoader as a type (#5901) 2023-02-12 22:59:25 +08:00
luhc228 842a2c00fb
docs: add searchParams usage (#5898) 2023-02-10 01:38:12 -08:00
waynelee 299a3466af
docs: fix the development doc path error (#5871) 2023-02-08 02:57:16 -08:00
waynelee 0e1588b789
docs: fix import defineAppConfigh from ice (#5870) 2023-02-06 15:07:22 +08:00
waynelee 04833b736f
docs: fix update-from-icejs2 (#5854) 2023-02-03 12:18:48 +08:00
ClarkXia a364a619c9
Merge pull request #5804 from alibaba/release/3.1.0
Release/3.1.0
2023-02-03 11:39:48 +08:00
水澜 d2f0b7e5c7
feat: suspense ssr (#5584)
* feat: suspense ssr demo

* chore: rename global variable

* chore: update lock

* feat: suspense demo

* chore: delete dead code

* refactor: rename to data context

* fix: error triggered in steam, should not downgrade

* feat: suspense ssr

* fix: should async script when suspense

* feat: support suspense for common components

* feat: support suspense for common components

* fix: style type lint

* fix: typings

* feat: remove server data loader for suspense component

* feat: disable dataLoader for suspense

* chore: add style

* chore: add changelog

* chore: add changelog

* chore: add comments

* refactor: check suspense data

* fix: type

* test: suspnese

* fix: compat with ssg

* feat: fallback for suspense

* feat: suspense fallback

* refactor: pass id as props

* refactor: pass fallback as element

* fix: type

* docs: suspense

* docs: suspense

* refactor: support suspense in components

* fix: changelog

* fix: lint

* fix: should not replace env to string

* chore: add changelog

* chore: remove dead code

* revert: dataloader for ssr

* fix: lint

* refactor: rename

* docs: hide suspense ssr

* refactor: remove internal error boundary

* refactor: merge if condition

* fix: type

* refactor: suspense api

---------

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-02-02 16:00:04 +08:00
luhc228 bde7dbd6f7
docs: optimize cli documentation (#5846) 2023-02-02 10:46:17 +08:00
luhc228 80e6bef23d
fix: transformSync api not import (#5845) 2023-02-01 19:51:51 +08:00
luhc228 926fc278ac
fix: store docs typo (#5818)
* fix: store docs typo

* fix: typo
2023-01-31 07:01:39 -08:00
ClarkXia 4f8c72b678 Merge branch 'release/3.0' of github.com:alibaba/ice into release/3.0 2023-01-12 18:55:39 +08:00
ClarkXia c08dd7a706
docs: icestark (#5748)
* docs: icestark

* Update icestark.md
2023-01-12 16:15:39 +08:00
ClarkXia 8ef77037ac
Merge pull request #5784 from alibaba/release/3.0
Release 3.0.6
2023-01-12 15:48:05 +08:00
ZeroLing f46d0e7204
feat: support target and renderer (#5700)
* feat: support target and renderMode

* fix: test case and renderer

* Update build.ts

* refactor: constant

* fix: eslint

* fix: remove empty line

* fix: remove useless code

* feat: add import.meta.env

* fix: type webpack

* fix: server compiler defines
2023-01-06 15:07:39 +08:00
ZeroLing 98e89c1e6d
docs: add-icejs2-update (#5677)
* docs: add-icejs2-update

* docs: update doc

* Update update-from-icejs2.md

* Update update-from-icejs2.md
2023-01-05 15:45:42 +08:00
水澜 fb7dd7f394
docs: server external (#5729) 2022-12-26 17:00:53 +08:00
染陌同学 17161f9302
docs: add statit dataLoader (#5737) 2022-12-26 16:50:28 +08:00
染陌同学 e133db8101
docs: modify doc of appear (#5734) 2022-12-26 16:47:28 +08:00
染陌同学 f9dc5ffa85
docs: add docs of cumstom render for document (#5689) 2022-12-09 18:05:10 +08:00
luhc228 e339d4a003
optimize route docs (#5610)
* docs: update route config

* docs: get route info

* docs: route redirect

* docs: ignoreFiles in route docs

* docs: $.tsx

* feat: add route tip

* fix: comment
2022-12-07 19:17:17 +08:00
luhc228 564638e205
docs: update plugin dev (#5619) 2022-11-29 11:13:17 +08:00
luhc228 c66f60e410
docs: add Document props pagePath (#5621)
* docs: add document props pagePath

* Update document.md

* Update document.md

* Update document.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-25 22:52:14 +08:00
luhc228 c2fdd48a2e
docs: splitChunks (#5601) 2022-11-25 14:58:56 +08:00
Rhuzerv cffc9895a5
docs: modify the url to the correct repo (#5612) 2022-11-24 13:24:35 +08:00
ZeroLing f6cfab13b4
Docs/update ssr (#5581)
* docs: remove tips s

* docs: modify docs
2022-11-23 20:10:17 +08:00
染陌同学 9ff4a3591a
docs: modify route docs (#5597) 2022-11-21 14:36:23 +08:00
NK 5235940708
docs(miniapp): update miniapp start article (#5580) 2022-11-17 20:04:44 +08:00
ZeroLing 2ef2eeb003
docs: modify ice.js documentations (#5579) 2022-11-17 19:51:12 +08:00
luhc228 17238b3c64
feat: ice.js 3 create-ice (#5571)
* feat: create-ice

* chore: README

* docs: create app

* chore: version

* fix: not existed file

* chore: template

* fix: scaffold name

* Update README.md
2022-11-17 14:30:45 +08:00
NK 29ce172fab
fix: miniapp bugs (#5566)
* fix(miniapp): compatible with no params passed to miniapp plugin

* fix(miniapp): not ignore outputDir in webpack watchOptions

* docs(miniapp): update miniapp start article

* fix(miniapp): only when public dir exists should copy-webpack-plugin be enabled
2022-11-17 11:53:27 +08:00
NK 8a60304b0b Fix/miniapp problems (#671)
* fix(miniapp): page load after getAppData

* docs(miniapp): update miniapp-runtime readme

* feat(miniapp): support turn off rpx2vw using enableRpx2Vw

* chore(miniapp): update example

* fix(miniapp): outputDir is wrong in command line

* fix(miniapp): no log in build command

* fix(miniapp): history type

* chore(miniapp): update example

* feat(miniapp): support enableCache to disable cache in miniapp task

* fix(miniapp): throw error if no getConfig function in page component

* feat(miniapp): add params to specify getData and getConfig

* fix(miniapp): getData/getAppData existence situation

* feat(miniapp): normalize route in history

* fix: lint warning

* feat(miniapp): align Link to props and history.push props

* docs(miniapp): add more articles

* feat(miniapp): support nativeConfig in plugin-miniapp

* feat(miniapp): rename getConfig to pageConfig

* feat(miniapp): rename getData to dataLoader

* fix: lint warning

* docs: fix broken links

* docs(miniapp): update miniapp location and relative links

* Update start.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 16:31:24 +08:00
luhc228 4148b2a761 docs: optimize (#686) 2022-11-15 16:31:18 +08:00
水澜 6ce0835d9b refactor: app data loader (#689)
* refactor: getAppData to dataLoader

* refactor: merge data loader logic in one file

* fix: comments
2022-11-15 16:31:09 +08:00
ZeroLing d2c7e0696d chore: optimize (#676)
* chore: optimize with rax-compat docs

* refactor: add mock express types dependency

* refactor: change usage for definePageConfig

* chore: change docs

* docs: ICE to ice.js

* fix: templorary remove the type

* chore: handle with lint problems

* fix: lock file
2022-11-15 10:33:11 +08:00
luhc228 ecc32ac672 docs: optimize assets docs (#669)
* docs: optimize assets docs

* docs: typo

* fix: assets docs problems

* refactor: optimize docs
2022-11-15 10:33:11 +08:00
染陌同学 930e8e25b7 docs: add doc of rax-migrate (#682)
* docs: add doc of rax-migrate

* docs: modify icejs

* Update integrate-from-rax.md

* Update integrate-from-rax.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 10:33:11 +08:00
染陌同学 0b6fb00b33 Docs/appear (#680)
* doc: add appear doc

* doc: modify appear

* Update appear.md

* doc: modify appear

* Update appear.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 10:33:11 +08:00
ZeroLing 2d0a38ba9e Docs/add request (#670)
* chore: close announcement

* docs: add doc for request

* docs: rename title for request

* docs: add.tsx

* docs: request doc

* refactor: change request to requestConfig

* chore: change usage and documentation

* docs: optimize doc

* docs: update
2022-11-15 10:33:11 +08:00
水澜 413c6edfb5 docs: nested routes (#679)
* docs: nested routes

* docs: add example

* chore: update lock

* docs: custom route path

* fix: use max width

* fix: add file path

* revert: to width

* fix: duplicate text

* fix: description

* fix: rename

* fix: file path

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00
水澜 80e6c059a4 docs: data loader (#667)
* refactor: data loader docs

* refactor: request.md

* refactor: img

* fix: incoherent sentence

* refactor: request to data loader

* refactor: app data loader docs

* chore: demo for data loader

* docs: multi data loader

* docs: data loader

* fix: remove dead code

* fix: video

* fix: video

* fix: height

* chore: update lock

* fix: use gif replace video

* fix: img width

* fix: link

* feat: add demo

* refactor: demo path

* fix: description

* docs: add return value type

* refactor: flow chart

* fix: link

* fix: flow chart

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00
ZeroLing c1b773e74a Docs/jsx plus (#672)
* chore: rename with-plugin-request to with-request

* docs: add jsx plus documentation
2022-11-15 10:33:11 +08:00
luhc228 af24b565a1 feat: support postcss user config (#626)
* feat: support postcss in userConfig

* feat: support postcss.config.js

* docs: optimize config

* docs: postcss

* feat: add tailwindcss example

* chore: export postcss

* docs: update postcss

* docs: update browsers desc
2022-11-15 10:33:11 +08:00
luhc228 e88c291ad1 fix: useAuth error (#661)
* chore: example

* chore: with-auth example

* docs: update auth

* test: add with-auth test

* chore: format

* fix: lock
2022-11-15 10:33:11 +08:00
ClarkXia 63b5a02335 feat: config polyfill for bowsers support (#652)
* feat: config polyfill for bowsers support

* chore: optimize code

* chore: lock

* chore: test case

* chore: test case

* chore: comment
2022-11-15 10:33:11 +08:00
水澜 5544c79d27 feat: support crossorigin (#649)
* feat: support pass crossorigin

* docs: cross origin loading

* fix: config doc

* docs: add link

* Update config.md
2022-11-15 10:33:11 +08:00
染陌同学 e148decd78 docs: add addDataLoaderImport (#636) 2022-11-15 10:33:11 +08:00
luhc228 1c8815fdad feat: web-worker example (#627)
* docs: refactor assets

* feat: web-worker example
2022-11-15 10:33:08 +08:00
ClarkXia 7b1cb86299 refactor: type dependencies (#638)
* refactor: types dependencies

* chore: types

* fix: tsconfig

* chore: optimize code

* fix: conflict
2022-11-15 10:33:00 +08:00
luhc228 2ee7fc3d76 docs: mock use middleware (#612)
* docs: mock use middleware

* fix: comment

* docs: add types
2022-11-15 10:32:49 +08:00
ClarkXia 99c8a96f50 docs: plugin antd and fusion (#617) 2022-11-15 10:32:49 +08:00
ClarkXia 167336a6cf docs: api (#628)
* docs: add api title

* docs: add api

* docs: api link
2022-11-15 10:32:49 +08:00
luhc228 2e57000afc feat: keep-alive (#556)
* feat: init keep-alive plugin

* chore: update lock

* feat: add api

* chore: remove plugin

* chore: not modify code

* fix: lock

* feat: support keep-alive

* chore: lock

* chore: update component name

* chore: add ref

* chore: import name

* docs: keep-alive

* chore: line break

* chore: remove unstable prefix
2022-11-15 10:32:49 +08:00
ZeroLing 0faeb9d73b Docs/update (#593)
* docs: add docs for plugin list (#589)

* docs: add docs for plugin list

* docs: update store

* docs: update to ice.js3

* docs: update docs

* docs: update

* docs: update directory (#590)

* docs: ICE to ice.js

* docs: typos

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:32:49 +08:00
luhc228 7fe93e3503 feat: ClientOnly component (#542)
* feat: BrowserOnly Component

* docs: BrowserOnly component docs

* docs: optimize

* feat: export useIsBrowser Hook

* feat: useIsBrowser example

* docs: useIsBrowser

* docs: typo

* chore: clientOnly

* feat: ClientOnly and useMounted

* feat: add ClientOnly test

* docs: update docs

* feat: use hooks instead of Context

* chore: import name
2022-11-15 10:32:48 +08:00
luhc228 f1e7b19497 docs: cli (#576)
* docs: cli

* docs: typo
2022-11-15 10:32:48 +08:00
luhc228 9a9f672f31 docs: optimize development docs (#577) 2022-11-15 10:32:48 +08:00
ZeroLing 6a5fd2eb2a docs: update directory (#590) 2022-11-15 10:32:48 +08:00
ZeroLing 834fc97829 docs: add docs for plugin list (#589)
* docs: add docs for plugin list

* docs: update store

* docs: update to ice.js3

* docs: update docs

* docs: update
2022-11-15 10:32:48 +08:00
luhc228 bcbf6b5804 feat: support runtime relative path (#537)
* feat: support runtime relative path

* chore: line break

* fix: not compatible with relative path

* feat: support absolute path

* docs: update plugin-dev

* docs: optimize config

* refactor: runtime staticRuntime and name

* fix: type

* chore: remove file path exists check
2022-11-15 10:32:43 +08:00
luhc228 a5f85662d8 docs: auth (#528)
* docs: auth

* fix: build error

* feat: remove api auth
2022-11-15 10:32:43 +08:00
luhc228 76148f4882 docs: store (#504)
* docs: init

* feat: update store docs

* fix: diff syntax

* docs: add example link

* chore: summary name

* docs: optimize store doc

* docs: remove reference

* docs: remove preState

* docs: decorator
2022-11-15 10:32:43 +08:00
luhc228 8f24f2ec48 docs: memory router (#548) 2022-11-15 10:32:43 +08:00
水澜 99d7f37fc5 refactor: generate data-loader only by getData (#514)
* refactor: generate data-loader only by getData

* feat: support config dataloader

* test: disable data-loader

* chore: rename

* docs: data loader

* chore: update lock
2022-11-15 10:32:43 +08:00
luhc228 8e13b5d68b feat: test (#512)
* feat: init jest test

* feat: support vitest

* chore: jest version

* feat: jest component test

* feat: vitest demo

* chore: add @vitest/coverage-c8 dep

* fix: lint

* docs: test

* chore: add comment

* fix: not depend on the vitest as dependencies

* chore: vitest version

* chore: version

* chore: version

* chore: lock

* fix: lock

* chore: vitest version

* fix: lock

* docs: typo

* docs: file extname
2022-11-15 10:32:34 +08:00
水澜 990f7aa552 feat: support inline style for ssr (#518)
* feat: inline style for less

* feat: classname to style

* feat: esbuild inline style

* feat: transform styles

* fix: compat for less module

* fix: less rule

* feat: ignore

* docs: ignore

* refactor: to ts

* test: inline-style

* chore: update lock

* fix: deps

* refactor: enable esbuild inline style loader only in ssr

* fix: validate for ignore plugins

* refactor: to pure functions

* feat: sync syntaxFeatures

* fix: lint

* Update rax-inline-style.test.ts
2022-11-15 10:31:35 +08:00
luhc228 8425e70f94 docs: optimize getConfig sub title (#474)
* docs: getConfig sub title

* fix: title
2022-11-15 10:31:14 +08:00
luhc228 bed716fb74 feat: plugin-css-assets-local (#520)
* feat: init plugin

* feat: add plugin to example

* fix: lock

* docs: README

* docs: css-assets-local

* fix: typo
2022-11-15 10:31:09 +08:00
luhc228 41aee63512 feat: add splitChunks to userConfig (#454)
* feat: add splitChunks to userConfig

* docs: splitChunks

* test: splitChunks test case

* fix: splitChunk test case
2022-11-15 10:27:46 +08:00
水澜 00f75371ed feat: getAppData (#375)
* feat: getAppData

* fix: remove dead code

* fix: should remove default export for app entry too

* docs: app data
2022-11-15 10:15:12 +08:00
ClarkXia dca51484c2 feat: support syntax feature by user config (#376)
* feat: support sytax feature by user config

* docs: add syntaxFeatures docs

* fix: remove sourcemap of esbuild use swc soucemap instead

* fix: default value of swc options

* fix: merge config
2022-11-15 10:14:38 +08:00
ClarkXia 5cc7dc6c2b feat: config transform (#339)
* feat: add transform

* fix: config transform

* docs: config transform
2022-11-14 19:53:32 +08:00
ClarkXia 28e5da5056 fix: server default port of 3000 (#341)
* fix: server default port of 3000

* fix: docs png
2022-11-14 19:53:32 +08:00
luhc228 d5500abe1e docs: mock config & env reference (#332)
* docs: yh fix

* chore: test

* chore: update docs

* chore: update install website script

* chore: add filter branches
2022-11-14 19:53:31 +08:00
answershuto 4e05733708 docs: delete rax picture 2022-11-14 19:53:28 +08:00
answershuto df2e1b0b39 docs: modify 2022-11-14 19:53:23 +08:00
ZeroLing 8095991e3a Update v3 docs (#329)
* docs: merge with release next

* chore: update homepage

* docs: update docs

* docs: update docs

* docs: update about
2022-11-14 19:51:57 +08:00
answershuto 27d45326cd docs: deal with err 2022-11-14 19:50:07 +08:00
answershuto 89ced86c30 docs: modify other differences 2022-11-14 19:50:07 +08:00
answershuto edcc791f7d docs: modify styles 2022-11-14 19:50:07 +08:00
answershuto e35c96a71e docs: modify Appear & Disappear 2022-11-14 19:50:07 +08:00
answershuto 7b1aa0af6c docs: modify doc of rax-compat 2022-11-14 19:50:07 +08:00
luhc228 3bc3c53b78 docs: deploy (#324)
* docs: deploy

* chore: update lock
2022-11-14 19:50:01 +08:00
ClarkXia 32407234d7 docs: plugin development (#325)
* docs: plugin development

* docs: fix api
2022-11-14 19:49:00 +08:00
大果 8dec98d0e8 文档 (#203)
* feat: docs directory

* docs: 调整结构

* chore: lock

* feat: update docs

* docs: update assets doc

* 新增文档 for 介绍 and 环境变量 (#307)

* docs: add about

* docs: add docs for env

* docs: update about

* docs: config (#306)

* docs: router (#304)

* docs: router

* feat: getconfig

* docs: get data

* docs: ssg

* docs: ssr

* docs: document

* docs: page

* docs: enable ssr

* fix: title

* Doc/rax compat (#303)

* docs: add docs of rax-compat

* docs: modify doc of rax compat

* Docs: app entry (#301)

* docs: app entry

* docs: app entry

* docs: mock (#245)

* docs: mock

* chore: typo

* chore: title

* docs: styles (#244)

* docs: style

* chore: acss title

* Docs: contributing (#243)

* docs: contributing

* chore: typo

* chore: update contributing docs

* fix: typo

* chore: add putteteer install

* docs: quick start (#235)

* docs: quick start

* chore: update IDE

* chore: update docs

* docs: app directory (#236)

* docs: directory

* chore: document desc

* docs: update website

* docs: update about

* docs: update docs

* chore: update prism

* chore: update docs

* chore: update

Co-authored-by: luhc228 <luhengchang228@126.com>
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
Co-authored-by: 逆葵 <xianyong.yxy@alibaba-inc.com>
Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
Co-authored-by: ZeroLing <i@zeroling.com>
Co-authored-by: 水澜 <shuilan.cj@taobao.com>
Co-authored-by: 染陌同学 <answershuto@gmail.com>
Co-authored-by: luhc228 <44047106+luhc228@users.noreply.github.com>
2022-11-14 19:47:40 +08:00
大果 48879c5cd1 chore: optimzie website github actions (#6)
* chore: optimzie docs

* fix: website action
2022-11-14 17:41:31 +08:00
大果 42a0a374ef chore: init website (#5)
* chore: init website

* chore: rework website ci

* fix: working-directory

* chore: trigger website ci

* chore: optimize docs

* chore: remove unused md
2022-11-14 17:41:12 +08:00