-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat(UniverSheet): bump version 10.0.6 #881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||||||||||||||||||||||||||
| import { addScript, addLink, getTheme } from '../BootstrapBlazor/modules/utility.js' | ||||||||||||||||||||||||||||||
| import { addScript, addLink, getTheme } from '../BootstrapBlazor/modules/utility.js' | ||||||||||||||||||||||||||||||
| import DataService from './data-service.js' | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| const loadAssets = async lang => { | ||||||||||||||||||||||||||||||
| const loadAssets2 = async lang => { | ||||||||||||||||||||||||||||||
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/react.production.min.js'); | ||||||||||||||||||||||||||||||
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/react-dom.production.min.js'); | ||||||||||||||||||||||||||||||
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/rxjs.umd.min.js'); | ||||||||||||||||||||||||||||||
|
|
@@ -26,6 +26,10 @@ const loadAssets = async lang => { | |||||||||||||||||||||||||||||
| await addLink('./_content/BootstrapBlazor.UniverSheet/univer/univer-sheet.bundle.css'); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| const loadAssets = async lang => { | ||||||||||||||||||||||||||||||
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/univer-bundle.js'); | ||||||||||||||||||||||||||||||
| await addLink('./_content/BootstrapBlazor.UniverSheet/univer/univer-sheet.bundle.css'); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| export async function createUniverSheetAsync(sheet) { | ||||||||||||||||||||||||||||||
| sheet.lang = sheet.lang ?? 'en-US'; | ||||||||||||||||||||||||||||||
| await loadAssets(sheet.lang); | ||||||||||||||||||||||||||||||
|
Comment on lines
+29
to
35
|
||||||||||||||||||||||||||||||
| const loadAssets = async lang => { | |
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/univer-bundle.js'); | |
| await addLink('./_content/BootstrapBlazor.UniverSheet/univer/univer-sheet.bundle.css'); | |
| } | |
| export async function createUniverSheetAsync(sheet) { | |
| sheet.lang = sheet.lang ?? 'en-US'; | |
| await loadAssets(sheet.lang); | |
| const loadAssets = async () => { | |
| await addScript('./_content/BootstrapBlazor.UniverSheet/univer/univer-bundle.js'); | |
| await addLink('./_content/BootstrapBlazor.UniverSheet/univer/univer-sheet.bundle.css'); | |
| } | |
| export async function createUniverSheetAsync(sheet) { | |
| sheet.lang = sheet.lang ?? 'en-US'; | |
| await loadAssets(); |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function name
loadAssets2is unclear and doesn't follow good naming conventions. If this function is being kept for a specific reason (such as backward compatibility, debugging, or as an alternative loading strategy), it should have a more descriptive name likeloadAssetsIndividually,loadAssetsLegacy, orloadAssetsUnbundledto clarify its purpose.