mirror of
https://github.com/wekan/wekan.git
synced 2026-03-10 23:52:34 +01:00
Reverted New UI Design of WeKan v8.29 and added more fixes and performance improvements.
Thanks to xet7 !
This commit is contained in:
parent
d152d8fc1b
commit
1b8b8d2eef
196 changed files with 17659 additions and 10028 deletions
|
|
@ -5,11 +5,11 @@ import { mongodbDriverManager } from './mongodbDriverManager';
|
|||
|
||||
/**
|
||||
* Meteor MongoDB Integration
|
||||
*
|
||||
*
|
||||
* This module integrates the MongoDB driver manager with Meteor's
|
||||
* built-in MongoDB connection system to provide automatic driver
|
||||
* selection and version detection.
|
||||
*
|
||||
*
|
||||
* Features:
|
||||
* - Hooks into Meteor's MongoDB connection process
|
||||
* - Automatic driver selection based on detected version
|
||||
|
|
@ -58,7 +58,7 @@ class MeteorMongoIntegration {
|
|||
*/
|
||||
overrideMeteorConnection() {
|
||||
const self = this;
|
||||
|
||||
|
||||
// Override Meteor.connect if it exists
|
||||
if (typeof Meteor.connect === 'function') {
|
||||
Meteor.connect = async function(url, options) {
|
||||
|
|
@ -110,16 +110,16 @@ class MeteorMongoIntegration {
|
|||
async createCustomConnection(url, options = {}) {
|
||||
try {
|
||||
console.log('Creating custom MongoDB connection...');
|
||||
|
||||
|
||||
// Use our connection manager
|
||||
const connection = await mongodbConnectionManager.createConnection(url, options);
|
||||
|
||||
|
||||
// Store the custom connection
|
||||
this.customConnection = connection;
|
||||
|
||||
|
||||
// Create a Meteor-compatible connection object
|
||||
const meteorConnection = this.createMeteorCompatibleConnection(connection);
|
||||
|
||||
|
||||
console.log('Custom MongoDB connection created successfully');
|
||||
return meteorConnection;
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ class MeteorMongoIntegration {
|
|||
// Basic connection properties
|
||||
_driver: connection,
|
||||
_name: 'custom-mongodb-connection',
|
||||
|
||||
|
||||
// Collection creation method
|
||||
createCollection: function(name, options = {}) {
|
||||
const db = connection.db();
|
||||
|
|
@ -242,7 +242,7 @@ class MeteorMongoIntegration {
|
|||
if (this.originalMongoConnect) {
|
||||
Meteor.connect = this.originalMongoConnect;
|
||||
}
|
||||
|
||||
|
||||
if (this.originalMongoCollection) {
|
||||
Mongo.Collection = this.originalMongoCollection;
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ class MeteorMongoIntegration {
|
|||
|
||||
const db = this.customConnection.db();
|
||||
const result = await db.admin().ping();
|
||||
|
||||
|
||||
return {
|
||||
success: true,
|
||||
result,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue