Просмотр исходного кода

Merge pull request #368 from weseek/master

v3.0.9
Yuki Takei 8 лет назад
Родитель
Сommit
d42c7c3f8b

+ 12 - 1
CHANGES.md

@@ -1,9 +1,20 @@
 CHANGES
 CHANGES
 ========
 ========
 
 
-## 3.0.8-RC
+## 3.0.9-RC
+
+* Fix: Registering new LDAP User is failed
+    * Introduced by 3.0.6
+* Support: Upgrade libs
+    * codemirror
+    * react-codemirror2
+    * normalize-path
+    * style-loader
+
+## 3.0.8
 
 
 * Improvement: h1#revision-path occupies most of the screen when the page path is long
 * Improvement: h1#revision-path occupies most of the screen when the page path is long
+* Improvement: Ensure not to save concealed email field to localStorage
 * Fix: Cannot input "c" and "e" on iOS
 * Fix: Cannot input "c" and "e" on iOS
 
 
 ## 3.0.7
 ## 3.0.7

+ 0 - 1
bin/shrink-emojione-strategy.js

@@ -4,7 +4,6 @@
  * @author Yuki Takei <yuki@weseek.co.jp>
  * @author Yuki Takei <yuki@weseek.co.jp>
  */
  */
 const fs = require('graceful-fs');
 const fs = require('graceful-fs');
-const normalize = require('normalize-path');
 const helpers = require('../config/helpers');
 const helpers = require('../config/helpers');
 
 
 const OUT = helpers.root('tmp/emoji_strategy_shrinked.json');
 const OUT = helpers.root('tmp/emoji_strategy_shrinked.json');

+ 1 - 1
lib/models/external-account.js

@@ -92,7 +92,7 @@ class ExternalAccount {
             return User.createUser('', usernameToBeRegistered, undefined, undefined, undefined, User.STATUS_ACTIVE);
             return User.createUser('', usernameToBeRegistered, undefined, undefined, undefined, User.STATUS_ACTIVE);
           })
           })
           .then(newUser => {
           .then(newUser => {
-            return this.associate(providerType, accountId, newUser._id);
+            return this.associate(providerType, accountId, newUser);
           });
           });
 
 
       });
       });

+ 1 - 1
lib/views/layout-growi/widget/header.html

@@ -13,7 +13,7 @@
       {% if page %}
       {% if page %}
       {% include '../../widget/header-buttons.html' %}
       {% include '../../widget/header-buttons.html' %}
 
 
-      <ul class="authors hidden-sm hidden-xs">
+      <ul class="authors hidden-sm hidden-xs text-nowrap">
         <li>
         <li>
           <div class="d-flex align-items-center">
           <div class="d-flex align-items-center">
             <a class="m-r-5" href="{{ userPageRoot(page.creator) }}">
             <a class="m-r-5" href="{{ userPageRoot(page.creator) }}">

+ 5 - 5
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "growi",
   "name": "growi",
-  "version": "3.0.8-RC",
+  "version": "3.0.9-RC",
   "description": "Team collaboration software using markdown",
   "description": "Team collaboration software using markdown",
   "tags": [
   "tags": [
     "wiki",
     "wiki",
@@ -62,7 +62,7 @@
     "bootstrap-sass": "~3.3.6",
     "bootstrap-sass": "~3.3.6",
     "bootstrap-select": "^1.12.4",
     "bootstrap-select": "^1.12.4",
     "check-node-version": "^3.1.1",
     "check-node-version": "^3.1.1",
-    "codemirror": "^5.36.0",
+    "codemirror": "^5.37.0",
     "connect-flash": "~0.1.1",
     "connect-flash": "~0.1.1",
     "connect-mongo": "^2.0.1",
     "connect-mongo": "^2.0.1",
     "connect-redis": "^3.3.0",
     "connect-redis": "^3.3.0",
@@ -117,7 +117,7 @@
     "node-sass": "^4.5.0",
     "node-sass": "^4.5.0",
     "nodemailer": "^4.0.1",
     "nodemailer": "^4.0.1",
     "nodemailer-ses-transport": "~1.5.0",
     "nodemailer-ses-transport": "~1.5.0",
-    "normalize-path": "^2.1.1",
+    "normalize-path": "^3.0.0",
     "npm-run-all": "^4.1.2",
     "npm-run-all": "^4.1.2",
     "optimize-js-plugin": "0.0.4",
     "optimize-js-plugin": "0.0.4",
     "passport": "^0.4.0",
     "passport": "^0.4.0",
@@ -130,7 +130,7 @@
     "react-bootstrap": "^0.32.1",
     "react-bootstrap": "^0.32.1",
     "react-bootstrap-typeahead": "^3.0.3",
     "react-bootstrap-typeahead": "^3.0.3",
     "react-clipboard.js": "^1.1.3",
     "react-clipboard.js": "^1.1.3",
-    "react-codemirror2": "^4.2.1",
+    "react-codemirror2": "^5.0.0",
     "react-dom": "^16.2.0",
     "react-dom": "^16.2.0",
     "react-dropzone": "^4.2.7",
     "react-dropzone": "^4.2.7",
     "reveal.js": "^3.5.0",
     "reveal.js": "^3.5.0",
@@ -139,7 +139,7 @@
     "slack-node": "^0.1.8",
     "slack-node": "^0.1.8",
     "socket.io": "^2.0.3",
     "socket.io": "^2.0.3",
     "socket.io-client": "^2.0.3",
     "socket.io-client": "^2.0.3",
-    "style-loader": "^0.20.1",
+    "style-loader": "^0.21.0",
     "swig-templates": "^2.0.2",
     "swig-templates": "^2.0.2",
     "throttle-debounce": "^1.0.1",
     "throttle-debounce": "^1.0.1",
     "toastr": "^2.1.2",
     "toastr": "^2.1.2",

+ 21 - 23
resource/styles/agile-admin/inverse/colors/_apply-colors-dark.scss

@@ -71,31 +71,29 @@ input.form-control, textarea.form-control {
 }
 }
 
 
 /*
 /*
- * Tabs
+ * Table
  */
  */
-.nav.nav-tabs {
-  border-bottom-color: $border;
+ .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th,
+ .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td ,
+ .table > thead > tr > th, .table-bordered{
+     border-top: 1px solid $border;
+ }
 
 
-  > li > a {
-    color:$linktext;
-    &:hover, &:focus {
-      color: $linktext-hover;
-    }
-  }
-  > li.active > a {
-    border-top-color: $border;
-    border-left-color: $border;
-    border-right-color: $border;
-  }
-  > li:not(.active) > a {
-    &:hover, &:focus {
-      border-top-color: darken($border, 5%);
-      border-left-color: darken($border, 5%);
-      border-right-color: darken($border, 5%);
-      border-bottom: transparent;
-    }
-  }
-}
+ .table-bordered > thead > tr > th,
+ .table-bordered > tbody > tr > th,
+ .table-bordered > tfoot > tr > th,
+ .table-bordered > thead > tr > td,
+ .table-bordered > tbody > tr > td,
+ .table-bordered > tfoot > tr > td {
+   border: 1px solid $border;
+ }
+ .table > thead > tr > th {
+     border-bottom: 1px solid $border;
+ }
+
+ .table-bordered {
+     border: 1px solid $border;
+ }
 
 
 
 
 /*
 /*

+ 0 - 7
resource/styles/agile-admin/inverse/colors/_apply-colors-light.scss

@@ -15,13 +15,6 @@
   background-color: darken($bodycolor, 5%);
   background-color: darken($bodycolor, 5%);
 }
 }
 
 
-/*
- * Tabs
- */
-.nav-tabs > li > a {
-  color: $dark;
-}
-
 /*
 /*
  * GROWI header
  * GROWI header
  */
  */

+ 27 - 0
resource/styles/agile-admin/inverse/colors/_apply-colors.scss

@@ -214,6 +214,33 @@ legend {
   }
   }
 }
 }
 
 
+/*
+ * Tabs
+ */
+ .nav.nav-tabs {
+  border-bottom-color: $navbar-border;
+
+  > li > a {
+    color:$linktext;
+    &:hover, &:focus {
+      color: $linktext-hover;
+    }
+  }
+  > li.active > a {
+    border-top-color: $navbar-border;
+    border-left-color: $navbar-border;
+    border-right-color: $navbar-border;
+  }
+  > li:not(.active) > a {
+    &:hover, &:focus {
+      border-top-color: $active-navbar-border;
+      border-left-color: $active-navbar-border;
+      border-right-color: $active-navbar-border;
+      border-bottom: transparent;
+    }
+  }
+}
+
 
 
 /*
 /*
  * Crowi sidebar
  * Crowi sidebar

+ 2 - 0
resource/styles/agile-admin/inverse/colors/default-dark.scss

@@ -20,6 +20,8 @@ $wikilinktext-hover: darken($wikilinktext, 5%);
 
 
 $dark: darken($bodytext, 5%);
 $dark: darken($bodytext, 5%);
 $border: lighten($basecolor, 15%);
 $border: lighten($basecolor, 15%);
+$navbar-border: lighten($border, 10%);
+$active-navbar-border: darken($border, 3%);
 
 
 @import 'apply-colors';
 @import 'apply-colors';
 @import 'apply-colors-dark';
 @import 'apply-colors-dark';

+ 2 - 0
resource/styles/agile-admin/inverse/variables.scss

@@ -51,6 +51,8 @@ $rgt:right !default;
 $lft:left !default;
 $lft:left !default;
 
 
 $dark-text:#848a96 !default;
 $dark-text:#848a96 !default;
+$navbar-border: #ccc !default;
+$active-navbar-border: lighten($navbar-border, 20%) !default;
 
 
 /*Border radius*/
 /*Border radius*/
 $radius: 0 !default;
 $radius: 0 !default;

+ 2 - 2
resource/styles/bootstrap4/_mixins.scss

@@ -12,8 +12,8 @@
 // @import "mixins/size";
 // @import "mixins/size";
 // @import "mixins/reset-text";
 // @import "mixins/reset-text";
 // @import "mixins/text-emphasis";
 // @import "mixins/text-emphasis";
-// @import "mixins/text-hide";
-// @import "mixins/text-truncate";
+@import "mixins/text-hide";
+@import "mixins/text-truncate";
 // @import "mixins/visibility";
 // @import "mixins/visibility";
 
 
 // // Components
 // // Components

+ 1 - 1
resource/styles/bootstrap4/_utilities.scss

@@ -10,5 +10,5 @@
 // @import "utilities/screenreaders";
 // @import "utilities/screenreaders";
 // @import "utilities/sizing";
 // @import "utilities/sizing";
 @import "utilities/spacing";
 @import "utilities/spacing";
-// @import "utilities/text";
+@import "utilities/text";
 // @import "utilities/visibility";
 // @import "utilities/visibility";

+ 3 - 3
resource/styles/bootstrap4/_variables.scss

@@ -231,9 +231,9 @@ $grid-breakpoints: (
 // $font-size-lg:                ($font-size-base * 1.25) !default;
 // $font-size-lg:                ($font-size-base * 1.25) !default;
 // $font-size-sm:                ($font-size-base * .875) !default;
 // $font-size-sm:                ($font-size-base * .875) !default;
 
 
-// $font-weight-light:           300 !default;
-// $font-weight-normal:          400 !default;
-// $font-weight-bold:            700 !default;
+$font-weight-light:           300 !default;
+$font-weight-normal:          400 !default;
+$font-weight-bold:            700 !default;
 
 
 // $font-weight-base:            $font-weight-normal !default;
 // $font-weight-base:            $font-weight-normal !default;
 // $line-height-base:            1.5 !default;
 // $line-height-base:            1.5 !default;

+ 4 - 4
resource/styles/bootstrap4/utilities/_text.scss

@@ -39,11 +39,11 @@
 
 
 .text-white { color: #fff !important; }
 .text-white { color: #fff !important; }
 
 
-@each $color, $value in $theme-colors {
-  @include text-emphasis-variant(".text-#{$color}", $value);
-}
+// @each $color, $value in $theme-colors {
+//   @include text-emphasis-variant(".text-#{$color}", $value);
+// }
 
 
-.text-muted { color: $text-muted !important; }
+// .text-muted { color: $text-muted !important; }
 
 
 // Misc
 // Misc
 
 

+ 3 - 3
resource/styles/scss/style.scss

@@ -1,6 +1,3 @@
-// vendor
-@import 'vendor';
-
 // import variables
 // import variables
 @import '../agile-admin/inverse/variables';
 @import '../agile-admin/inverse/variables';
 @import 'variables';
 @import 'variables';
@@ -8,6 +5,9 @@
 
 
 @import 'override-bootstrap-variables';
 @import 'override-bootstrap-variables';
 
 
+// vendor
+@import 'vendor';
+
 // override react-bootstrap-typeahead styles
 // override react-bootstrap-typeahead styles
 @import 'override-rbt';
 @import 'override-rbt';
 
 

+ 16 - 19
yarn.lock

@@ -1607,9 +1607,9 @@ code-point-at@^1.0.0:
   version "1.1.0"
   version "1.1.0"
   resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
   resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
 
 
-codemirror@^5.36.0:
-  version "5.36.0"
-  resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.36.0.tgz#1172ad9dc298056c06e0b34e5ccd23825ca15b40"
+codemirror@^5.37.0:
+  version "5.37.0"
+  resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.37.0.tgz#c349b584e158f590277f26d37c2469a6bc538036"
 
 
 color-convert@^1.3.0, color-convert@^1.9.0:
 color-convert@^1.3.0, color-convert@^1.9.0:
   version "1.9.1"
   version "1.9.1"
@@ -4934,12 +4934,16 @@ normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
     semver "2 || 3 || 4 || 5"
     semver "2 || 3 || 4 || 5"
     validate-npm-package-license "^3.0.1"
     validate-npm-package-license "^3.0.1"
 
 
-normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1:
+normalize-path@^2.0.0, normalize-path@^2.0.1:
   version "2.1.1"
   version "2.1.1"
   resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
   resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
   dependencies:
   dependencies:
     remove-trailing-separator "^1.0.1"
     remove-trailing-separator "^1.0.1"
 
 
+normalize-path@^3.0.0:
+  version "3.0.0"
+  resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
+
 normalize-range@^0.1.2:
 normalize-range@^0.1.2:
   version "0.1.2"
   version "0.1.2"
   resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
   resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
@@ -5955,9 +5959,9 @@ react-clipboard.js@^1.1.3:
     clipboard "^1.6.1"
     clipboard "^1.6.1"
     prop-types "^15.5.0"
     prop-types "^15.5.0"
 
 
-react-codemirror2@^4.2.1:
-  version "4.2.1"
-  resolved "https://registry.yarnpkg.com/react-codemirror2/-/react-codemirror2-4.2.1.tgz#4ad3c5c60ebbcb34880f961721b51527324ec021"
+react-codemirror2@^5.0.0:
+  version "5.0.0"
+  resolved "https://registry.yarnpkg.com/react-codemirror2/-/react-codemirror2-5.0.0.tgz#18e0d4495c3cfe0c4675dd9bfcea074ca3aa9f56"
 
 
 react-dom@^16.2.0:
 react-dom@^16.2.0:
   version "16.2.0"
   version "16.2.0"
@@ -6503,20 +6507,13 @@ schema-utils@^0.3.0:
   dependencies:
   dependencies:
     ajv "^5.0.0"
     ajv "^5.0.0"
 
 
-schema-utils@^0.4.0:
+schema-utils@^0.4.0, schema-utils@^0.4.5:
   version "0.4.5"
   version "0.4.5"
   resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.5.tgz#21836f0608aac17b78f9e3e24daff14a5ca13a3e"
   resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.5.tgz#21836f0608aac17b78f9e3e24daff14a5ca13a3e"
   dependencies:
   dependencies:
     ajv "^6.1.0"
     ajv "^6.1.0"
     ajv-keywords "^3.1.0"
     ajv-keywords "^3.1.0"
 
 
-schema-utils@^0.4.3:
-  version "0.4.3"
-  resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.3.tgz#e2a594d3395834d5e15da22b48be13517859458e"
-  dependencies:
-    ajv "^5.0.0"
-    ajv-keywords "^2.1.0"
-
 scss-tokenizer@^0.2.3:
 scss-tokenizer@^0.2.3:
   version "0.2.3"
   version "0.2.3"
   resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1"
   resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1"
@@ -6980,12 +6977,12 @@ strip-json-comments@~2.0.1:
   version "2.0.1"
   version "2.0.1"
   resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
   resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
 
 
-style-loader@^0.20.1:
-  version "0.20.1"
-  resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.20.1.tgz#33ac2bf4d5c65a8906bc586ad253334c246998d0"
+style-loader@^0.21.0:
+  version "0.21.0"
+  resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.21.0.tgz#68c52e5eb2afc9ca92b6274be277ee59aea3a852"
   dependencies:
   dependencies:
     loader-utils "^1.1.0"
     loader-utils "^1.1.0"
-    schema-utils "^0.4.3"
+    schema-utils "^0.4.5"
 
 
 supports-color@4.4.0:
 supports-color@4.4.0:
   version "4.4.0"
   version "4.4.0"