Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UI
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
UI
Compare revisions
v1.9.0 to v1.10.0
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
coscine/frontend/apps/ui
Select target project
No results found
v1.10.0
Select Git revision
Swap
Target
coscine/frontend/apps/ui
Select target project
coscine/frontend/apps/ui
1 result
v1.9.0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/util/bootstrap-vue-resolver.ts
+15
-0
15 additions, 0 deletions
src/util/bootstrap-vue-resolver.ts
vite.config.js
+65
-9
65 additions, 9 deletions
vite.config.js
yarn.lock-workspace
+1682
-1542
1682 additions, 1542 deletions
yarn.lock-workspace
with
1762 additions
and
1551 deletions
src/util/bootstrap-vue-resolver.ts
0 → 100644
View file @
83a053b7
import
type
{
ComponentResolver
}
from
"
unplugin-vue-components/types
"
;
/**
* Resolver for BootstrapVue
*
* @link https://github.com/bootstrap-vue/bootstrap-vue
*/
export
function
BootstrapVueResolver
():
ComponentResolver
{
return
{
type
:
"
component
"
,
resolve
:
(
name
:
string
)
=>
{
if
(
name
.
match
(
/^B
[
A-Z
]
/
))
return
{
name
,
from
:
"
bootstrap-vue
"
};
},
};
}
This diff is collapsed.
Click to expand it.
vite.config.js
View file @
83a053b7
import
path
from
"
path
"
;
import
{
defineConfig
}
from
"
vite
"
;
import
{
createVuePlugin
}
from
"
vite-plugin-vue2
"
;
// Polyfills for including streams
import
{
NodeGlobalsPolyfillPlugin
}
from
'
@esbuild-plugins/node-globals-polyfill
'
;
import
{
NodeModulesPolyfillPlugin
}
from
'
@esbuild-plugins/node-modules-polyfill
'
;
import
nodePolyfills
from
'
rollup-plugin-polyfill-node
'
;
import
globalPolyfills
from
'
rollup-plugin-node-globals
'
;
import
replace
from
'
@rollup/plugin-replace
'
;
import
WindiCSS
from
"
vite-plugin-windicss
"
;
import
Components
from
"
unplugin-vue-components/vite
"
;
import
{
BootstrapVueResolver
}
from
"
./src/util/bootstrap-vue-resolver
"
;
const
config
=
defineConfig
({
resolve
:
{
alias
:
{
...
...
@@ -24,16 +34,23 @@ const config = defineConfig({
dedupe
:
[
"
vue-demi
"
],
},
// Node.js global to browser globalThis
define
:
{
'
process.env
'
:
process
.
env
'
process.env
'
:
process
.
env
,
'
global
'
:
'
globalThis
'
,
},
optimizeDeps
:
{
esbuildOptions
:
{
// Node.js global to browser globalThis
define
:
{
global
:
'
globalThis
'
},
// Enable esbuild polyfill plugins
plugins
:
[
NodeGlobalsPolyfillPlugin
({
crypto
:
true
,
process
:
true
,
buffer
:
true
}),
NodeModulesPolyfillPlugin
(),
],
},
},
...
...
@@ -43,13 +60,49 @@ const config = defineConfig({
external
:
[
],
output
:
{
manualChunks
:
{
"
vuelidate
"
:
[
"
vuelidate
"
],
"
vuelidate/lib/validators
"
:
[
"
vuelidate/lib/validators
"
,
],
"
bootstrap-vue
"
:
[
"
bootstrap-vue
"
],
"
@coscine/form-generator
"
:
[
"
@coscine/form-generator
"
],
},
},
plugins
:
[
// Enable rollup polyfills plugin
// used during production bundling
nodePolyfills
(),
globalPolyfills
(),
replace
({
values
:
{
// Fixes for rdf-parse
'
rdfParse.RdfParser
'
:
'
RdfParser
'
,
'
ly.RdfParser
'
:
'
RdfParser
'
,
"
Duplex.prototype.push
"
:
"
_stream_readable.prototype.push
"
,
"
_stream_readable$1
"
:
"
_stream_readable
"
,
"
_stream_readable$2
"
:
"
_stream_readable
"
,
"
Readable$3.call
"
:
"
Readable$2.call
"
,
'
return new Readable$2(options);
'
:
`{
Object.assign(this, EventEmitter.prototype);
this.push = Readable$1.prototype.push;
this.unshift = Readable$1.prototype.unshift;
this.isPaused = Readable$1.prototype.isPaused;
this.setEncoding = Readable$1.prototype.setEncoding;
this.read = Readable$1.prototype.read;
this.pipe = Readable$1.prototype.pipe;
this.unpipe = Readable$1.prototype.unpipe;
this.on = Readable$1.prototype.on;
this.addListener = Readable$1.prototype.addListener;
this.resume = Readable$1.prototype.resume;
this.pause = Readable$1.prototype.pause;
this.wrap = Readable$1.prototype.wrap;
this.push = Transform$2.prototype.push;
this._read = Transform$2.prototype._read;
this._destroy = Transform$2.prototype._destroy;
}`
},
delimiters
:
[
''
,
''
],
preventAssignment
:
false
,
}),
],
},
},
...
...
@@ -60,6 +113,9 @@ const config = defineConfig({
dts
:
'
src/components.d.ts
'
,
include
:
[
/
\.
vue$/
,
/
\.
vue
\?
vue/
],
exclude
:
[
/
[\\/]
node_modules
[\\/]
/
,
/
[\\/]\.
git
[\\/]
/
,
/
[\\/]\.
nuxt
[\\/]
/
],
resolvers
:
[
BootstrapVueResolver
()
],
}),
],
...
...
This diff is collapsed.
Click to expand it.
yarn.lock-workspace
View file @
83a053b7
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next