From 29e661019b41e1b3ae5d980de9174ba171f11b2b Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 1 Mar 2019 11:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BA=BF=E4=B8=8A=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- lib/gitlab-cli/bin/gitlab | 2 +- lib/grack/bin/testserver | 1 - public/react/src/modules/page/component/TPICodeMirror.js | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 842249d6..43e9ef82 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -12,7 +12,7 @@ class CoursesController < ApplicationController helper :graduation_tasks include ApplicationHelper helper SyllabusesHelper - + # before_filter :auth_login1, :only => [:show, :course_activity, :feedback] if Redmine::Configuration['gitlab_address'].include?("test") skip_before_filter :verify_authenticity_token, :only => [:update_course_module, :join_course_multi_role] diff --git a/lib/gitlab-cli/bin/gitlab b/lib/gitlab-cli/bin/gitlab index af0fd0cc..2204bef3 100644 --- a/lib/gitlab-cli/bin/gitlab +++ b/lib/gitlab-cli/bin/gitlab @@ -1,5 +1,5 @@ #!/usr/bin/env ruby - +# $:.unshift File.expand_path('../../lib', __FILE__) require 'gitlab/cli' diff --git a/lib/grack/bin/testserver b/lib/grack/bin/testserver index 3c0db5b3..1099ec4a 100644 --- a/lib/grack/bin/testserver +++ b/lib/grack/bin/testserver @@ -4,7 +4,6 @@ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) Bundler.require(:default, :development) - require 'grack' require 'rack' root = File.absolute_path( File.join( File.dirname(__FILE__), '../examples' ) ) diff --git a/public/react/src/modules/page/component/TPICodeMirror.js b/public/react/src/modules/page/component/TPICodeMirror.js index 4ae5cc79..381a8a8a 100644 --- a/public/react/src/modules/page/component/TPICodeMirror.js +++ b/public/react/src/modules/page/component/TPICodeMirror.js @@ -12,7 +12,6 @@ import Drawer from 'material-ui/Drawer'; import './TPICodeMirror.css' import TPICodeSetting from './TPICodeSetting' - import { fromStore, toStore } from 'educoder' require('codemirror/lib/codemirror.css'); // require('codemirror/mode/javascript/javascript');