Skip to content
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

Remove deprecated button after rsbuild #3307

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
d1c918e
refactor: Use only deep import for cozy-ui
Ldoppea Jan 7, 2025
9073b5e
feat: Add Rsbuild dependencies
Ldoppea Jan 7, 2025
8741364
feat: Add Rsbuild config
Ldoppea Jan 7, 2025
a8dd9f8
feat: Add Rsbuild scripts
Ldoppea Jan 7, 2025
681bb25
feat: Move static assets into the public folder
Ldoppea Jan 7, 2025
ca210d4
feat: Migrate index.ejs from targets
Ldoppea Jan 7, 2025
dfa513c
feat: Remove __APP_SLUG__ to use cozy-drive slug directly
Ldoppea Jan 7, 2025
66380b8
refactor: Migrate alias to common one @/
Ldoppea Jan 7, 2025
b4e46a2
feat: Remove cozy-client-js
Ldoppea Jan 7, 2025
a8588b4
test: Fix Breadcrumb unit tests
Ldoppea Jan 15, 2025
d07a689
feat: Use flag debug to activate redux devtools
Ldoppea Jan 7, 2025
f2d0f36
feat: Stop using `window.flag` to debug flags
Ldoppea Jan 8, 2025
bb34b20
feat: Remove global `cozy` definition from source code
Ldoppea Jan 8, 2025
7af4206
feat: Remove mobile target
Ldoppea Jan 7, 2025
61031fe
feat: Remove jsconfig.json
Ldoppea Jan 7, 2025
cf30fb4
feat: Every one use assets
Ldoppea Jan 7, 2025
4a533b0
feat: Remove webpack custom config
Ldoppea Jan 7, 2025
d5b9485
feat: Remove old package
Ldoppea Jan 7, 2025
9526fb5
feat: Remove style linting temporary
Ldoppea Jan 7, 2025
bd7ece1
fix: Use `transpiled` imports from cozy-ui
Ldoppea Jan 7, 2025
5426474
fix: Correctly order callbacks and effects in `Breadcrumb.jsx`
Ldoppea Jan 10, 2025
f329a1e
fix: Declare `selected` variable before accessing it on `File.jsx`
Ldoppea Jan 10, 2025
29dc579
feat: Use `development` mode when using `watch` script
Ldoppea Jan 15, 2025
e2d1e34
feat: Upgrade rsbuild-config-cozy-app to `0.2.0`
Ldoppea Jan 15, 2025
e52b645
feat: Add `yarn start` script for rsbuild
Ldoppea Jan 15, 2025
f04860d
feat: Upgrade cozy-dataproxy-lib to `2.3.1`
Ldoppea Jan 15, 2025
f0eea56
feat: Configure WebWorker for react-pdf
Ldoppea Jan 15, 2025
0556e14
chore: Adapt bundlemon config to new Rsbuild output
Ldoppea Jan 15, 2025
8dc5d4a
feat: Use SWC for Jest unit tests
Ldoppea Jan 15, 2025
4e5aedd
fix: Copy OnlyOffice assets on build
Ldoppea Jan 15, 2025
ae5f156
fix: Copy icon assets on build
Ldoppea Jan 15, 2025
9879b3a
feat: Enable building Intents in rsbuild.config.mjs
Ldoppea Jan 28, 2025
06e4a6d
feat: Add cozy-interapp
Ldoppea Jan 28, 2025
000327b
feat: Make Intents work with cozy-client instead of cozy-client-js
Ldoppea Jan 28, 2025
2f772dd
refactor: Remove unused GET_URL intent
Ldoppea Jan 28, 2025
84a0b86
refactor: Remove unused Intent.jsx
Ldoppea Jan 28, 2025
8ac082d
fix: Remove PublicViewer
Ldoppea Jan 28, 2025
5b329e8
feat: Upgrade rsbuild-config-cozy-app to `0.2.1`
Ldoppea Jan 29, 2025
56c9226
feat: Remove unused component
zatteo Jan 27, 2025
16007c9
feat: Migrate cozy-ui deprecated Button to Buttons
zatteo Jan 27, 2025
4fbda69
feat: ALIAS
Ldoppea Feb 4, 2025
7a8c349
feat: RE-ADD LINT
Ldoppea Feb 4, 2025
868a1d0
fix: READD STYLE FILE
Ldoppea Feb 4, 2025
a5ea22a
feat: Upgrade cozy-ui, cozy-viewer and cozy-sharing
Ldoppea Feb 4, 2025
ba2218b
fix: INDEX EJS
Ldoppea Feb 6, 2025
6767a8a
fix: ASSETS LOADERS
Ldoppea Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
90 changes: 34 additions & 56 deletions .bundlemonrc
Original file line number Diff line number Diff line change
@@ -1,107 +1,85 @@
{
"baseDir": "./build",
"pathLabels": {
"chunkId": "[\\d-]+"
},
"files": [
{
"path": "app/drive.<hash>.js"
"path": "static/js/<chunkId>.<hash>.js"
},
{
"path": "app/drive.<hash>.min.css"
"path": "static/js/cozy.<hash>.js"
},
{
"path": "img/app-icon.<hash>.svg"
"path": "static/js/main.<hash>.js"
},
{
"path": "intents/drive.<hash>.js"
"path": "static/js/lib-react.<hash>.js"
},
{
"path": "intents/drive.<hash>.min.css"
"path": "static/js/lib-router.<hash>.js"
},
{
"path": "intents/index.html"
"path": "static/css/cozy.<hash>.css"
},
{
"path": "onlyOffice/slide.pptx"
"path": "static/css/main.<hash>.css"
},
{
"path": "onlyOffice/spreadsheet.xlsx"
"path": "public/<hash>.js"
},
{
"path": "onlyOffice/text.docx"
"path": "public/static/js/<chunkId>.<hash>.js"
},
{
"path": "public/cozy-bar.css"
"path": "public/static/js/public.<hash>.js"
},
{
"path": "public/cozy-bar.js"
"path": "public/static/js/cozy.<hash>.js"
},
{
"path": "public/cozy-client-js.js"
"path": "public/static/js/lib-react.<hash>.js"
},
{
"path": "public/drive.<hash>.js"
"path": "public/static/js/lib-router.<hash>.js"
},
{
"path": "public/drive.<hash>.min.css"
"path": "public/static/css/cozy.<hash>.css"
},
{
"path": "public/pdf.worker.entry.<hash>.worker.js"
"path": "public/static/css/public.<hash>.css"
},
{
"path": "services/dacc/drive.js"
"path": "services/dacc.js"
},
{
"path": "services/qualificationMigration/drive.js"
"path": "services/qualificationMigration.js"
},
{
"path": "vendors/drive.<hash>.<hash>.min.css"
},
{
"path": "vendors/drive.<hash>.js"
},
{
"path": "app-drive.<hash>.min.css"
"path": "<hash>.js"
},
{
"path": "index.html"
},
{
"path": "intents-drive.<hash>.min.css"
},
{
"path": "manifest.json"
"path": "assets/manifest.json"
},
{
"path": "manifest.webapp"
},
{
"path": "public-drive.<hash>.min.css"
},
{
"path": "vendors-drive.<hash>.min.css"
}
],
"groups": [
{
"path": "app/**"
},
{
"path": "img/**"
},
{
"path": "intents/**"
},
{
"path": "onlyOffice/**"
},
{
"path": "public/**"
},
{
"path": "services/**"
},
{
"path": "vendors/**"
}
{
"path": "**/*.js"
},
{
"path": "**/*.css"
},
{
"path": "**/*.{png,svg,ico}"
}
],
"reportOutput": ["github"]
"reportOutput": [
"github"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ desktop.ini
# cozy-jobs-cli
.token.json
konnector-dev-config.json

# SWC
.swc
61 changes: 0 additions & 61 deletions app.config.js

This file was deleted.

36 changes: 29 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,38 @@ module.exports = {
'^config/(.*)': '<rootDir>/src/config/$1',
'^constants/(.*)': '<rootDir>/src/constants/$1',
'^modules/(.*)': '<rootDir>/src/modules/$1',
'^queries(.*)': '<rootDir>/src/queries$1'
'^queries(.*)': '<rootDir>/src/queries$1',
'^@/(.*)$': '<rootDir>/src/$1'
},
clearMocks: true,
transform: {
'\\.[jt]sx?$': 'babel-jest',
'\\.(js|jsx|mjs)$': [
'@swc/jest',
{
jsc: {
experimental: {
plugins: [['swc_mut_cjs_exports', {}]],
},
parser: {
jsx: true,
},
},
},
],
'\\.(ts|tsx)$': [
'@swc/jest',
{
jsc: {
experimental: {
plugins: [['swc_mut_cjs_exports', {}]],
},
parser: {
syntax: 'typescript',
tsx: true,
},
},
},
],
'^.+\\.webapp$': '<rootDir>/test/jestLib/json-transformer.js'
},
transformIgnorePatterns: [
Expand All @@ -42,10 +69,5 @@ module.exports = {
url: 'http://cozy.localhost:8080/'
},
testMatch: ['**/(*.)(spec|test).[jt]s?(x)'],
globals: {
__APP_SLUG__: 'drive',
__TARGET__: 'browser',
__DEVELOPMENT__: true
},
reporters: ['default', '<rootDir>/jestHelpers/ConsoleUsageReporter.js']
}
12 changes: 0 additions & 12 deletions jsconfig.json

This file was deleted.

35 changes: 17 additions & 18 deletions manifest.webapp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.79.0",
"type": "webapp",
"licence": "AGPL-3.0",
"icon": "public/app-icon.svg",
"icon": "assets/app-icon.svg",
"categories": ["cozy"],
"source": "https://github.com/cozy/cozy-drive",
"editor": "Cozy",
Expand All @@ -18,28 +18,28 @@
"short_description": "Cozy Drive helps you to save, sync and secure your files on your Cozy.",
"long_description": "With Cozy Drive, you can easily:\n- Store your important files and keep them secure in your Cozy\n- Access to all your documents online & offline, from your desktop, and on your smartphone or tablet\n- Share links to files ans folders with who you like;\n- Automatically retrieve bills, payrolls, tax notices and other data from your main online services (internet, energy, retail, mobile, energy, travel...)\n- Upload files to your Cozy from your Android",
"screenshots": [
"screenshots/en/screenshot01.png",
"screenshots/en/screenshot02.png",
"screenshots/en/screenshot03.png",
"screenshots/en/screenshot04.png"
"assets/screenshots/en/screenshot01.png",
"assets/screenshots/en/screenshot02.png",
"assets/screenshots/en/screenshot03.png",
"assets/screenshots/en/screenshot04.png"
]
},
"fr": {
"short_description": "Cozy Drive est l’application de sauvegarde, de synchronisation et de sécurisation de tous vos fichiers sur Cozy.",
"long_description": "Avec Cozy Drive vous pourrez :\n- Sauvegarder et synchroniser gratuitement tous vos documents importants (carte d’identité, photos de vacances, avis d’imposition, fiches de salaires…);\n- Accéder à vos documents n’importe quand, n’importe ou même en mode avion depuis votre bureau, votre smartphone ou tablette;\n- Partager vos fichiers et dossiers par lien avec qui vous le souhaitez;\n- Récupérer automatiquement vos documents administratifs de vos principaux fournisseurs de service (opérateur mobile, fournisseur d’énergie, assureur, internet, santé…);\n- Rester synchronisé·e lors de vos voyages et déplacements professionnels avec nos applications mobiles.",
"screenshots": [
"screenshots/fr/screenshot01.png",
"screenshots/fr/screenshot02.png",
"screenshots/fr/screenshot03.png",
"screenshots/fr/screenshot04.png"
"assets/screenshots/fr/screenshot01.png",
"assets/screenshots/fr/screenshot02.png",
"assets/screenshots/fr/screenshot03.png",
"assets/screenshots/fr/screenshot04.png"
]
}
},
"screenshots": [
"screenshots/fr/screenshot01.png",
"screenshots/fr/screenshot02.png",
"screenshots/fr/screenshot03.png",
"screenshots/fr/screenshot04.png"
"assets/screenshots/fr/screenshot01.png",
"assets/screenshots/fr/screenshot02.png",
"assets/screenshots/fr/screenshot03.png",
"assets/screenshots/fr/screenshot04.png"
],
"langs": ["en", "fr"],
"routes": {
Expand All @@ -62,6 +62,10 @@
"folder": "/public",
"index": "index.html",
"public": true
},
"/assets": {
"folder": "/assets",
"public": true
}
},
"intents": [
Expand All @@ -70,11 +74,6 @@
"type": ["io.cozy.files"],
"href": "/intents"
},
{
"action": "GET_URL",
"type": ["io.cozy.files"],
"href": "/intents"
},
{
"action": "OPEN",
"type": ["io.cozy.suggestions"],
Expand Down
Loading