Merge branch 'develop' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into develop
	
		
	
				
					
				
			
						commit
						23753d8977
					
				| @ -0,0 +1,3 @@ | |||||||
|  | class LocalChallenge < ActiveRecord::Base | ||||||
|  | 
 | ||||||
|  | end | ||||||
| @ -0,0 +1,3 @@ | |||||||
|  | class LocalChallengeTag < ActiveRecord::Base | ||||||
|  | 
 | ||||||
|  | end | ||||||
| @ -0,0 +1,3 @@ | |||||||
|  | class LocalMirrorRepository < ActiveRecord::Base | ||||||
|  | 
 | ||||||
|  | end | ||||||
| @ -0,0 +1,3 @@ | |||||||
|  | class LocalShixun < ActiveRecord::Base | ||||||
|  | 
 | ||||||
|  | end | ||||||
| @ -0,0 +1,2 @@ | |||||||
|  | class LocalShixunTagRepertoire < ActiveRecord::Base | ||||||
|  | end | ||||||
| @ -0,0 +1,3 @@ | |||||||
|  | class LocalTestSet < ActiveRecord::Base | ||||||
|  | 
 | ||||||
|  | end | ||||||
| @ -1,5 +1,14 @@ | |||||||
| <% @partners.each_with_index do |partner,index| %> | <% @partners.each_with_index do |partner,index| %> | ||||||
|   <li> |   <li class="clearfix"> | ||||||
|     <%= link_to "#{partner.name}", partners_managements_path(:partner => partner), :class => "#{partner.id == @current_partner.id ? 'active' : ''}" %> |     <%= link_to "#{partner.name}", partners_managements_path(:partner => partner), :class => "#{partner.id == @current_partner.id ? 'active' : ''} fl" %> | ||||||
|  |     <% if false %> | ||||||
|  |     <div class="fr mr10 edu-menu-panel mt5"> | ||||||
|  |       <i class="iconfont icon-sandian color-grey-9 font-14"></i> | ||||||
|  |       <ul class="edu-menuSmall-list edu-txt-center"> | ||||||
|  |         <li><a href="javascript:void(0)">查看</a></li> | ||||||
|  |         <li><a href="javascript:void(0)" onclick="delPartners();">删除</a></li> | ||||||
|  |       </ul> | ||||||
|  |     </div> | ||||||
|  |     <% end %> | ||||||
|   </li> |   </li> | ||||||
| <% end %> | <% end %> | ||||||
| @ -0,0 +1,47 @@ | |||||||
|  | class CreateLocalShixuns < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_shixuns do |t| | ||||||
|  |       t.string :name | ||||||
|  |       t.text :description | ||||||
|  |       t.integer :user_id | ||||||
|  |       t.integer :gpid | ||||||
|  |       t.integer :visits | ||||||
|  |       t.integer :status | ||||||
|  |       t.string :language | ||||||
|  |       t.text :authentication | ||||||
|  |       t.string :identifier | ||||||
|  |       t.text :propaedeutics | ||||||
|  |       t.integer :trainee | ||||||
|  |       t.integer :major_id | ||||||
|  |       t.integer :webssh | ||||||
|  |       t.boolean :homepage_show | ||||||
|  |       t.boolean :hidden | ||||||
|  |       t.integer :fork_from | ||||||
|  |       t.boolean :can_copy | ||||||
|  |       t.datetime :modifiy_tim | ||||||
|  |       t.datetime :reset_time | ||||||
|  |       t.integer :closer_id | ||||||
|  |       t.datetime :end_time | ||||||
|  |       t.string :git_url | ||||||
|  |       t.boolean :vnc | ||||||
|  |       t.integer :myshixuns_count | ||||||
|  |       t.integer :challenges_count | ||||||
|  |       t.integer :use_scope | ||||||
|  |       t.text :evaluate_script | ||||||
|  |       t.integer :mirror_script_id | ||||||
|  |       t.string :image_text | ||||||
|  |       t.boolean :code_hidden | ||||||
|  |       t.boolean :task_pass | ||||||
|  |       t.integer :exec_time | ||||||
|  |       t.string :test_set_permission | ||||||
|  |       t.boolean :sigle_training | ||||||
|  |       t.boolean :hide_code | ||||||
|  |       t.boolean :multi_webssh | ||||||
|  |       t.integer :excute_time | ||||||
|  |       t.integer :averge_star | ||||||
|  |       t.integer :forbid_copy | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,10 @@ | |||||||
|  | class CreateLocalMirrorRepositories < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_mirror_repositories do |t| | ||||||
|  |       t.integer :local_shixun_id | ||||||
|  |       t.integer :mirror_repository_id | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,10 @@ | |||||||
|  | class CreateLocalShixunTagRepertoires < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_shixun_tag_repertoires do |t| | ||||||
|  |       t.integer :tag_repertoire_id | ||||||
|  |       t.integer :local_shixun_id | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,29 @@ | |||||||
|  | class CreateLocalChallenges < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_challenges do |t| | ||||||
|  |       t.integer :local_shixun_id | ||||||
|  |       t.string :subject | ||||||
|  |       t.integer :status | ||||||
|  |       t.integer :position | ||||||
|  |       t.text :task_pass | ||||||
|  |       t.text :answer | ||||||
|  |       t.integer :score | ||||||
|  |       t.integer :visits | ||||||
|  |       t.string :path | ||||||
|  |       t.integer :evaluation_way | ||||||
|  |       t.integer :difficulty | ||||||
|  |       t.string :exec_path | ||||||
|  |       t.integer :code_line | ||||||
|  |       t.integer :st | ||||||
|  |       t.text :web_route | ||||||
|  |       t.text :picture_path | ||||||
|  |       t.text :expect_picture_path | ||||||
|  |       t.integer :challenge_tags_count | ||||||
|  |       t.datetime :modify_time | ||||||
|  |       t.string :original_picture_path | ||||||
|  |       t.integer :show_type | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,14 @@ | |||||||
|  | class CreateLocalTestSets < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_test_sets do |t| | ||||||
|  |       t.text :input | ||||||
|  |       t.text :output | ||||||
|  |       t.integer :local_challenge_id | ||||||
|  |       t.integer :is_public | ||||||
|  |       t.integer :result | ||||||
|  |       t.integer :position | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,10 @@ | |||||||
|  | class CreateLocalChallengeTags < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     create_table :local_challenge_tags do |t| | ||||||
|  |       t.string :name | ||||||
|  |       t.integer :local_challenge_id | ||||||
|  | 
 | ||||||
|  |       t.timestamps | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | class AddTestSetScoreToLocalChallenge < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     add_column :local_challenges, :test_set_score, :integer | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | class AddShixunIdToLocalShixun < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     add_column :local_shixuns, :shixun_id, :integer | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | class AddScoreToLocalTestSets < ActiveRecord::Migration | ||||||
|  |   def change | ||||||
|  |     add_column :local_test_sets, :score, :integer | ||||||
|  |   end | ||||||
|  | end | ||||||
											
												
													File diff suppressed because one or more lines are too long
												
											
										
									
								| @ -0,0 +1,6 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_challenge_tag do | ||||||
|  |     name "MyString" | ||||||
|  |     local_challenge_id 1 | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,25 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_challenge do | ||||||
|  |     local_shixun_id 1 | ||||||
|  |     subject "MyString" | ||||||
|  |     status 1 | ||||||
|  |     position 1 | ||||||
|  |     task_pass "" | ||||||
|  |     answer "" | ||||||
|  |     score 1 | ||||||
|  |     visits 1 | ||||||
|  |     path "MyString" | ||||||
|  |     evaluation_way 1 | ||||||
|  |     difficulty 1 | ||||||
|  |     exec_path "MyString" | ||||||
|  |     code_line 1 | ||||||
|  |     st 1 | ||||||
|  |     web_route "MyText" | ||||||
|  |     picture_path "MyText" | ||||||
|  |     expect_picture_path "MyText" | ||||||
|  |     challenge_tags_count 1 | ||||||
|  |     modify_time "2019-04-12 14:27:18" | ||||||
|  |     original_picture_path "MyString" | ||||||
|  |     show_type 1 | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,6 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_mirror_repository do | ||||||
|  |     local_shixun_id 1 | ||||||
|  |     mirror_repository_id 1 | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,6 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_shixun_tag_repertoire do | ||||||
|  |     tag_repertoire_id 1 | ||||||
|  |     local_shixun_id 1 | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,37 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_shixun do | ||||||
|  |     name "MyString" | ||||||
|  |     description "MyText" | ||||||
|  |     user_id 1 | ||||||
|  |     gpid 1 | ||||||
|  |     visits 1 | ||||||
|  |     status 1 | ||||||
|  |     language "MyString" | ||||||
|  |     authentication false | ||||||
|  |     identifier "MyString" | ||||||
|  |     propaedeutics "MyText" | ||||||
|  |     trainee 1 | ||||||
|  |     major_id 1 | ||||||
|  |     webssh 1 | ||||||
|  |     homepage_show false | ||||||
|  |     hidden false | ||||||
|  |     fork_from 1 | ||||||
|  |     can_copy false | ||||||
|  |     modifiy_tim "2019-04-12 09:21:34" | ||||||
|  |     reset_time "" | ||||||
|  |     closer_id 1 | ||||||
|  |     end_time "2019-04-12 09:21:34" | ||||||
|  |     git_url "MyString" | ||||||
|  |     vnc false | ||||||
|  |     myshixuns_count 1 | ||||||
|  |     challenges_count 1 | ||||||
|  |     use_scope 1 | ||||||
|  |     evaluate_script "" | ||||||
|  |     mirror_script_id 1 | ||||||
|  |     image_text "MyString" | ||||||
|  |     code_hidden false | ||||||
|  |     task_pass false | ||||||
|  |     exec_time 1 | ||||||
|  |     test_set "MyString" | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,10 @@ | |||||||
|  | FactoryGirl.define do | ||||||
|  |   factory :local_test_set do | ||||||
|  |     input "" | ||||||
|  |     output "" | ||||||
|  |     local_challenge_id 1 | ||||||
|  |     is_public 1 | ||||||
|  |     result 1 | ||||||
|  |     position 1 | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalChallenge, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalChallengeTag, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalMirrorRepository, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalShixun, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalShixunTagRepertoire, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
| @ -0,0 +1,5 @@ | |||||||
|  | require 'rails_helper' | ||||||
|  | 
 | ||||||
|  | RSpec.describe LocalTestSet, :type => :model do | ||||||
|  |   pending "add some examples to (or delete) #{__FILE__}" | ||||||
|  | end | ||||||
					Loading…
					
					
				
		Reference in new issue