提交 56849e10 编写于 作者: R rsercano

repo name change, removed breaking changes

上级 1b9616c9
## Mongoclient, MongoDB Management Tool
Cross-platform, easy to use, MongoDB 3.4+ support and more features!
[![Build Status](https://travis-ci.org/rsercano/mongoclient.svg?branch=master)](https://travis-ci.org/rsercano/mongoclient)
[![Code Climate](https://codeclimate.com/github/rsercano/mongoclient/badges/gpa.svg)](https://codeclimate.com/github/rsercano/mongoclient)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6a75fc4e1d3f480f811b5339202400b5)](https://www.codacy.com/app/ozdemirsercan27/mongoclient?utm_source=github.com&utm_medium=referral&utm_content=rsercano/mongoclient&utm_campaign=Badge_Grade)
[![GitHub release](https://img.shields.io/github/release/rsercano/mongoclient.svg)](https://github.com/rsercano/mongoclient)
[![Github All Releases](https://img.shields.io/github/downloads/rsercano/mongoclient/total.svg)](https://github.com/rsercano/mongoclient)
[![Build Status](https://travis-ci.org/mongoclient/mongoclient.svg?branch=master)](https://travis-ci.org/mongoclient/mongoclient)
[![Code Climate](https://codeclimate.com/github/mongoclient/mongoclient/badges/gpa.svg)](https://codeclimate.com/github/mongoclient/mongoclient)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6a75fc4e1d3f480f811b5339202400b5)](https://www.codacy.com/app/ozdemirsercan27/mongoclient?utm_source=github.com&utm_medium=referral&utm_content=mongoclient/mongoclient&utm_campaign=Badge_Grade)
[![GitHub release](https://img.shields.io/github/release/mongoclient/mongoclient.svg)](https://github.com/mongoclient/mongoclient)
[![Github All Releases](https://img.shields.io/github/downloads/mongoclient/mongoclient/total.svg)](https://github.com/mongoclient/mongoclient)
[![Docker Pulls](https://img.shields.io/docker/pulls/mongoclient/mongoclient.svg)](https://hub.docker.com/r/mongoclient/mongoclient/)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/rsercano/mongoclient/blob/master/LICENSE)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/mongoclient/mongoclient/blob/master/LICENSE)
[![Paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y5VD95E96NU6S)
*Mongoclient is in need of you to buy [INSPINA](https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S) theme's extended licence ($1000) to live longer. Thank you so much ! [Here's the list of donators, helpful people](https://github.com/rsercano/mongoclient/wiki/Donators) Can't you donate, no worries giving a star to this repository is free and appreciated as much as donation !*
*Mongoclient is in need of you to buy [INSPINA](https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S) theme's extended licence ($1000) to live longer. Thank you so much ! [Here's the list of donators, helpful people](https://github.com/mongoclient/mongoclient/wiki/Donators) Can't you donate, no worries giving a star to this repository is free and appreciated as much as donation !*
[Try Demo Application](http://www.mongoclient.com:3000)
......@@ -30,12 +30,12 @@ Version 1.5.0 has been released !
### Distributions
* [Linux x64](https://github.com/rsercano/mongoclient/releases/download/1.5.0/linux-portable-x64.zip)
* [Windows x64](https://github.com/rsercano/mongoclient/releases/download/1.5.0/windows-portable-x64.zip)
* [OSx](https://github.com/rsercano/mongoclient/releases/download/1.5.0/osx-portable.zip)
* [Web Application](https://github.com/rsercano/mongoclient/wiki#31-compile-from-source-browser-edition)
* [Linux x64](https://github.com/mongoclient/mongoclient/releases/download/1.5.0/linux-portable-x64.zip)
* [Windows x64](https://github.com/mongoclient/mongoclient/releases/download/1.5.0/windows-portable-x64.zip)
* [OSx](https://github.com/mongoclient/mongoclient/releases/download/1.5.0/osx-portable.zip)
* [Web Application](https://github.com/mongoclient/mongoclient/wiki#31-compile-from-source-browser-edition)
To learn more see the [wiki](https://github.com/rsercano/mongoclient/wiki) page.
To learn more see the [wiki](https://github.com/mongoclient/mongoclient/wiki) page.
<br/>
<br/>
## Docker
......@@ -73,7 +73,7 @@ And installed the [command line utility](https://docs.cloudfoundry.org/cf-cli/in
Get the latest MongoClient
```
git clone https://github.com/rsercano/mongoclient.git ~/mongoclient
git clone https://github.com/mongoclient/mongoclient.git ~/mongoclient
cd ~/mongoclient
```
......@@ -90,10 +90,10 @@ after a while, your console will output something like
![cf push mongoclient](https://cloud.githubusercontent.com/assets/3640368/21992923/117db29c-dc21-11e6-80c0-b2a246c0ae70.png)
## History
Please check [history](https://github.com/rsercano/mongoclient/blob/master/HISTORY.MD) file for version information.
Please check [history](https://github.com/mongoclient/mongoclient/blob/master/HISTORY.MD) file for version information.
## Roadmap
Please check [roadmap](https://github.com/rsercano/mongoclient/blob/master/ROADMAP.MD) file for further features.
Please check [roadmap](https://github.com/mongoclient/mongoclient/blob/master/ROADMAP.MD) file for further features.
## License
Project is licensed under [MIT](https://en.wikipedia.org/wiki/MIT_License), which means you are free to do anything with full of my work as long as you provide attribution back to me. Thanks !
{
"name": "Mongoclient",
"description": "MongoDB Management Tool",
"repository": "https://github.com/rsercano/mongoclient",
"repository": "https://github.com/mongoclient/mongoclient",
"logo": "http://mongoclient.com/img/logo/head_only_big.png",
"keywords": [
"meteor",
......
<template name="breakingChanges">
<div class="modal inmodal" id="breakingChangesModal" tabindex="-1" role="dialog" aria-hidden="true"
style="display: none;">
<div class="modal-dialog modal-lg">
<div class="modal-content animated bounceInRight">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">Close</span></button>
<h4 class="modal-title">Breaking Changes</h4>
<small class="font-bold">v1.6.0</small>
</div>
<div class="modal-body">
<div id="page1">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Querying BSON types
</div>
<div class="panel-body">
<p>Querying for whole <b>BSON types</b> are supported.Check extended json
documentation of mongodb for more info. Example valid queries:
</p>
<br/>
<div id="divQueryExamples">
<textarea id="txtQueryExamples" class="form-control"></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Added query wizard
</div>
<div class="panel-body">
<p>Added a simple query wizard, click <i class="fa fa-magic"></i> and follow instructions
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Mongodb 3.4 support
</div>
<div class="panel-body">
<p>Added newly released mongodb 3.4 support</p>
</div>
</div>
</div>
</div>
</div>
<div id="page2" style="display: none;">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Added native shell
</div>
<div class="panel-body">
<p>Added native mongo shell with version 3.4.0</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Added schema analyzer
</div>
<div class="panel-body">
<p>Added variety.js schema analyzer</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Added clone connection feature
</div>
<div class="panel-body">
<p>Now you can clone your existing connection and save</p>
</div>
</div>
</div>
</div>
</div>
<div id="page3" style="display: none;">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Chat is live
</div>
<div class="panel-body">
<p>Upon great demand of dear mongoclient users, chat is back again. <b>Please
try to keep your questions only about mongoclient</b>, or you can leave
feedback, and I'm gonna try to return you back as soon as possible.</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Moved to flowrouter
</div>
<div class="panel-body">
<p>Iron router and it's issues have been solved</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
Other improvements
</div>
<div class="panel-body">
<p>MeteorJS has been updated, scrollbars have been separated for navigation and main view, many bugs have been fixed.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<div class="pull-left">
<button id="btnPrevious" disabled class="btn btn-white btn-lg"><i class="fa fa-arrow-left"></i>
</button>
</div>
<button id="btnNext" class="btn btn-white btn-lg"><i class="fa fa-arrow-right"></i></button>
</div>
</div>
</div>
</div>
</template>
\ No newline at end of file
/**
* Created by Sercan on 30.10.2016.
*/
import {Template} from 'meteor/templating';
import Helper from '/client/imports/helper';
import './breaking_changes.html';
const getActivePage = function () {
let page1 = $('#page1');
let page2 = $('#page2');
let page3 = $('#page3');
if (page1.css('display') !== 'none') {
return 'page1';
}
if (page2.css('display') !== 'none') {
return 'page2';
}
if (page3.css('display') !== 'none') {
return 'page3';
}
};
const getExamples = function () {
let str = "// all extended json types will be converted to BSON types\n";
str += "{_id:{$oid:\"507f191e810c19729de860ea\"}}\n";
str += "{myDate:{$gte:{$date:\"2017-01-01T12:25:05Z\"}}} // ISO-8601 as mongodb supports it\n";
str += "{myDate:{$gte:{$date:\"2017-01-01T13:20\"}}} // all date convertible formats are supported\n";
str += "{myDate:{$gte:{$date:\"2017-01-01\"}}}\n";
str += "// also objectID and ISODate querying are supported as how it works in shell\n";
str += "{_id:ObjectId(\"507f191e810c19729de860ea\")}\n";
str += "{myDate:{$gte:ISODate(\"2017-01-01\")}}\n";
str += "// and they're case insensitive, whitespace is ignored\n";
str += "{_id: objectID (\"507f191e810c19729de860ea\")}\n";
str += "{myDate:{$gte: isoDaTe (\"2017-01-01\")}}\n";
str += "// even you can use date instead of ISODate\n";
str += "{myDate:{$gte: date (\"2017-01-01\")}}\n";
str += "{myDate:{$gte: new date (\"2017-01-01\")}}\n";
return str;
};
Template.breakingChanges.onRendered(function () {
let modal = $('#breakingChangesModal');
modal.on('shown.bs.modal', function () {
let div = $('#divQueryExamples');
Helper.initializeCodeMirror(div, 'txtQueryExamples');
div.data('editor').setValue(getExamples());
div.data('editor').setOption("readOnly", true);
});
});
Template.breakingChanges.events({
'click #btnNext'() {
let page1 = $('#page1');
let page2 = $('#page2');
let page3 = $('#page3');
let activePage = getActivePage();
if (activePage === 'page1') {
page1.hide();
page3.hide();
page2.show();
}
else if (activePage === 'page2') {
page1.hide();
page2.hide();
page3.show();
$('#btnNext').prop('disabled', true);
}
$('#btnPrevious').prop('disabled', false);
},
'click #btnPrevious'() {
let page1 = $('#page1');
let page2 = $('#page2');
let page3 = $('#page3');
let activePage = getActivePage();
if (activePage === 'page2') {
page1.show();
page3.hide();
page2.hide();
$('#btnPrevious').prop('disabled', true);
}
else if (activePage === 'page3') {
page1.hide();
page2.show();
page3.hide();
}
$('#btnNext').prop('disabled', false);
}
});
......@@ -49,12 +49,6 @@
</a>
</li>
<li class="divider"></li>
<li>
<a id="btnBreakingChanges" data-toggle="modal" data-target="#breakingChangesModal">
<i class="fa fa-warning"></i> Breaking Changes
</a>
</li>
<li class="divider"></li>
<li>
<a id="btnAboutMongoclient" href="">
<i class="fa fa-globe"></i> About
......@@ -192,6 +186,4 @@
{{> connections}}
{{> breakingChanges}}
</template>
\ No newline at end of file
......@@ -5,7 +5,6 @@ import {FlowRouter} from "meteor/kadira:flow-router";
import Helper from "/client/imports/helper";
import {Connections} from "/lib/imports/collections/connections";
import {connect, populateConnectionsTable} from "/client/imports/views/layouts/top_navbar/connections/connections";
import "/client/imports/views/layouts/breaking_changes/breaking_changes";
import "/client/imports/views/layouts/top_navbar/connections/connections";
import "./top_navbar.html";
......
......@@ -217,16 +217,13 @@
<div class="col-lg-12">
<div class="text-center m-t-lg">
<h1>
Welcome to Featured Mongoclient
Welcome to Mongoclient world !
</h1>
<small>
You can connect a new database by pressing <strong>Connect</strong> button.
</small>
<br/>
<br/>
<button id="btnBreakingChangesDBStats" type="button" class="btn btn-primary"
data-toggle="modal" data-target="#breakingChangesModal">Checkout Breaking Changes
</button>
</div>
</div>
</div>
......
......@@ -3,7 +3,7 @@
<label class="col-lg-1 control-label">Pipeline</label>
<div id="divPipeline" class="col-lg-11">
<textarea id="txtPipeline" class="form-control"></textarea>
<span class="help-block m-b-none">It should be a <b>json array</b>. <br/><b>Extended json</b> is valid for all selectors, checkout <b>More - Breaking Changes !</b></span>
<span class="help-block m-b-none">It should be a <b>json array</b>. <br/><b>Extended json</b> is valid for all selectors.</span>
</div>
</div>
......
......@@ -3,7 +3,7 @@
<label class="col-lg-1 control-label">Selector</label>
<div id="divSelector" class="col-lg-11">
<textarea id="txtSelector" class="form-control"></textarea>
<span class="help-block m-b-none"><b>Extended json</b> is valid for all selectors, checkout <b>More - Breaking Changes !</b></span>
<span class="help-block m-b-none"><b>Extended json</b> is valid for all selectors</span>
</div>
</div>
</template>
\ No newline at end of file
......@@ -99,9 +99,9 @@ const saveConnectionToDB = function (connection) {
Meteor.methods({
checkMongoclientVersion(){
try {
const response = HTTP.get('https://api.github.com/repos/rsercano/mongoclient/releases/latest', {headers: {"User-Agent": "Mongoclient"}});
const response = HTTP.get('https://api.github.com/repos/mongoclient/mongoclient/releases/latest', {headers: {"User-Agent": "Mongoclient"}});
if (response && response.data && response.data.name && response.data.name !== packageJson.version) {
return "There's a new version of mongoclient: " + response.data.name + ", <a href='https://github.com/rsercano/mongoclient/releases/latest'>download here</a>";
return "There's a new version of mongoclient: " + response.data.name + ", <a href='https://github.com/mongoclient/mongoclient/releases/latest'>download here</a>";
}
} catch (e) {
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册