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

refactor: upgrade to Meteor 3 #13

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 19 additions & 23 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,28 @@
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

[email protected].1 # Packages every Meteor app needs to have
[email protected].0 # Packages for a great mobile UX
mongo@1.16.7 # The database Meteor supports right now
[email protected].2 # Packages every Meteor app needs to have
[email protected].2 # Packages for a great mobile UX
mongo@2.0.0 # The database Meteor supports right now

[email protected].2 # CSS minifier run for production mode
standard-minifier-js@2.8.1 # JS minifier run for production mode
[email protected].0 # ECMAScript 5 compatibility for older browsers
[email protected].7 # Enable ECMAScript2015+ syntax in app code
typescript@4.9.4 # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.5.0 # Server-side component of the `meteor shell` command
[email protected].3 # CSS minifier run for production mode
standard-minifier-js@3.0.0 # JS minifier run for production mode
[email protected].1 # ECMAScript 5 compatibility for older browsers
[email protected].9 # Enable ECMAScript2015+ syntax in app code
typescript@5.4.3 # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.6.0 # Server-side component of the `meteor shell` command

[email protected] # Define static page content in .html files
vite:bundler
[email protected]
[email protected]
[email protected]
mdg:validated-method
[email protected] # Define static page content in .html files
[email protected]
[email protected]
[email protected]
lacosta:method-hooks
peerlibrary:middleware
meteorhacks:async
alanning:roles
maka:rest
[email protected]
socialize:user-presence
meteorhacks:ssr
jagi:astronomy
alanning:[email protected]
[email protected]
xolvio:cleaner
dburles:factory
meteortesting:mocha
zodern:types
jam:method
harry97:ssr
jorgenvatle:vite
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@2.13.3
METEOR@3.0.1
200 changes: 91 additions & 109 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,111 +1,93 @@
[email protected]
[email protected]
alanning:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
dburles:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
jagi:[email protected]
[email protected]
[email protected]
alanning:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
dburles:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
harry97:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
jam:[email protected]
jorgenvatle:[email protected]
lacosta:[email protected]
[email protected]
[email protected]
[email protected]
maka:[email protected]
matb33:[email protected]
mdg:[email protected]
mdg:[email protected]
[email protected]
[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteortesting:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
meteortesting:[email protected]
meteortesting:[email protected]
meteortesting:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
peerlibrary:[email protected]
[email protected]
raix:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
simple:[email protected]
socialize:[email protected]
socialize:[email protected]
socialize:[email protected]
socialize:[email protected]
socialize:[email protected]
socialize:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
tmeasday:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
vite:[email protected]
[email protected]
[email protected]
xolvio:[email protected]
zodern:[email protected]
meteortesting:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
xolvio:[email protected]
zodern:[email protected]
2 changes: 2 additions & 0 deletions _vite-bundle/client/_entry.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import "vite/modulepreload-polyfill"
import "/Users/diavrank/Documents/theory-swe/imports/startup/client/index.ts"
1 change: 1 addition & 0 deletions client/_vite-bundle/meteor-entry.js._vite-bundle.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Stub file for Meteor-Vite
Empty file added client/main.js
Empty file.
5 changes: 2 additions & 3 deletions imports/api/Binnacle/BinnacleCtrl.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Meteor } from 'meteor/meteor';
import { ResponseMessage } from '../../startup/server/utils/ResponseMessage';

// @ts-ignore
import { ValidatedMethod } from 'meteor/mdg:validated-method';
import {createMethod} from 'meteor/jam:method';
import FileOperations from '../../startup/server/utils/FileOperations';
import Utilities from '../../startup/server/utils/helpers';

export const binnacleMakeBackupMethod = new ValidatedMethod({
export const binnacleMakeBackupMethod = createMethod({
name: 'binnacle.makeBackup',
validate: null,
async run() {
Expand Down
14 changes: 5 additions & 9 deletions imports/api/DigitalSignature/DigitalSignatureCtrl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatedMethod } from 'meteor/mdg:validated-method';
import {createMethod} from 'meteor/jam:method';
import AuthGuard from '@middlewares/AuthGuard';
import { Meteor } from 'meteor/meteor';
import { ResponseMessage } from '@server/utils/ResponseMessage';
Expand All @@ -9,11 +9,9 @@ import { DigitalSignatureVerifyRequestDto } from '@api/DigitalSignature/dtos/Dig

const digitalSignatureService = new DigitalSignatureService();

export const signDocumentMethod = new ValidatedMethod({
export const signDocumentMethod = createMethod({
name: 'digitalSignature.sign',
mixins: [MethodHooks],
permissions: [Permissions.DIGITAL_SIGNATURE.SIGN.VALUE],
beforeHooks: [AuthGuard.checkPermission],
before: [AuthGuard.checkPermission([Permissions.DIGITAL_SIGNATURE.SIGN.VALUE])],
validate(requestDto: DigitalSignatureSignRequestDto) {
new DigitalSignatureSignRequestDto(requestDto).validate(this);
},
Expand All @@ -38,11 +36,9 @@ export const signDocumentMethod = new ValidatedMethod({
},
});

export const verifySignatureMethod = new ValidatedMethod({
export const verifySignatureMethod = createMethod({
name: 'digitalSignature.verify',
mixins: [MethodHooks],
permissions: [Permissions.DIGITAL_SIGNATURE.VERIFY.VALUE],
beforeHooks: [AuthGuard.checkPermission],
before: [AuthGuard.checkPermission([Permissions.DIGITAL_SIGNATURE.VERIFY.VALUE])],
validate(requestDto: DigitalSignatureVerifyRequestDto) {
new DigitalSignatureVerifyRequestDto(requestDto).validate(this);
},
Expand Down
Loading
Loading