Prepare for core integration

pull/6827/head
Oliver Günther 6 years ago
parent 2d4ebf9428
commit a161aaee5d
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 270
      .rubocop.yml
  2. 138
      .travis.yml
  3. 0
      modules/my_project_page/Gemfile.plugins
  4. 0
      modules/my_project_page/README.md
  5. 0
      modules/my_project_page/app/assets/stylesheets/my_project_page/my_projects_overview.sass
  6. 0
      modules/my_project_page/app/controllers/my_projects_overviews_controller.rb
  7. 0
      modules/my_project_page/app/helpers/my_projects_overviews_helper.rb
  8. 0
      modules/my_project_page/app/helpers/my_projects_users_helper.rb
  9. 0
      modules/my_project_page/app/helpers/my_projects_work_packages_helper.rb
  10. 0
      modules/my_project_page/app/models/my_projects_overview.rb
  11. 0
      modules/my_project_page/app/seeders/my_projects_overview_seeder.rb
  12. 0
      modules/my_project_page/app/views/my_projects_overviews/_block.html.erb
  13. 0
      modules/my_project_page/app/views/my_projects_overviews/_block_textilizable.html.erb
  14. 0
      modules/my_project_page/app/views/my_projects_overviews/_members.html.erb
  15. 0
      modules/my_project_page/app/views/my_projects_overviews/_sidebar.html.erb
  16. 0
      modules/my_project_page/app/views/my_projects_overviews/_textilizable.html.erb
  17. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_calendar.html.erb
  18. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_members.html.erb
  19. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_news_latest.html.erb
  20. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_project_description.html.erb
  21. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_project_details.html.erb
  22. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_spent_time.html.erb
  23. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_subprojects.html.erb
  24. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_work_package_tracking.html.erb
  25. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_work_packages_assigned_to_me.html.erb
  26. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_work_packages_reported_by_me.html.erb
  27. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_work_packages_responsible_for.html.erb
  28. 0
      modules/my_project_page/app/views/my_projects_overviews/blocks/_work_packages_watched.html.erb
  29. 0
      modules/my_project_page/app/views/my_projects_overviews/index.html.erb
  30. 0
      modules/my_project_page/app/views/my_projects_overviews/page_layout.html.erb
  31. 0
      modules/my_project_page/config/locales/crowdin/ar.yml
  32. 0
      modules/my_project_page/config/locales/crowdin/da.yml
  33. 0
      modules/my_project_page/config/locales/crowdin/de.yml
  34. 0
      modules/my_project_page/config/locales/crowdin/es-ES.yml
  35. 0
      modules/my_project_page/config/locales/crowdin/fi.yml
  36. 0
      modules/my_project_page/config/locales/crowdin/fr.yml
  37. 0
      modules/my_project_page/config/locales/crowdin/hi.yml
  38. 0
      modules/my_project_page/config/locales/crowdin/hr.yml
  39. 0
      modules/my_project_page/config/locales/crowdin/hu.yml
  40. 0
      modules/my_project_page/config/locales/crowdin/id.yml
  41. 0
      modules/my_project_page/config/locales/crowdin/it.yml
  42. 0
      modules/my_project_page/config/locales/crowdin/ja.yml
  43. 0
      modules/my_project_page/config/locales/crowdin/js-ar.yml
  44. 0
      modules/my_project_page/config/locales/crowdin/js-da.yml
  45. 0
      modules/my_project_page/config/locales/crowdin/js-de.yml
  46. 0
      modules/my_project_page/config/locales/crowdin/js-es-ES.yml
  47. 0
      modules/my_project_page/config/locales/crowdin/js-fi.yml
  48. 0
      modules/my_project_page/config/locales/crowdin/js-fr.yml
  49. 0
      modules/my_project_page/config/locales/crowdin/js-hi.yml
  50. 0
      modules/my_project_page/config/locales/crowdin/js-hr.yml
  51. 0
      modules/my_project_page/config/locales/crowdin/js-hu.yml
  52. 0
      modules/my_project_page/config/locales/crowdin/js-id.yml
  53. 0
      modules/my_project_page/config/locales/crowdin/js-it.yml
  54. 0
      modules/my_project_page/config/locales/crowdin/js-ja.yml
  55. 0
      modules/my_project_page/config/locales/crowdin/js-ko.yml
  56. 0
      modules/my_project_page/config/locales/crowdin/js-lt.yml
  57. 0
      modules/my_project_page/config/locales/crowdin/js-lv.yml
  58. 0
      modules/my_project_page/config/locales/crowdin/js-nl.yml
  59. 0
      modules/my_project_page/config/locales/crowdin/js-pl.yml
  60. 0
      modules/my_project_page/config/locales/crowdin/js-pt-BR.yml
  61. 0
      modules/my_project_page/config/locales/crowdin/js-pt-PT.yml
  62. 0
      modules/my_project_page/config/locales/crowdin/js-ru.yml
  63. 0
      modules/my_project_page/config/locales/crowdin/js-sk.yml
  64. 0
      modules/my_project_page/config/locales/crowdin/js-sv-SE.yml
  65. 0
      modules/my_project_page/config/locales/crowdin/js-tr.yml
  66. 0
      modules/my_project_page/config/locales/crowdin/js-zh-CN.yml
  67. 0
      modules/my_project_page/config/locales/crowdin/js-zh-TW.yml
  68. 0
      modules/my_project_page/config/locales/crowdin/ko.yml
  69. 0
      modules/my_project_page/config/locales/crowdin/lt.yml
  70. 0
      modules/my_project_page/config/locales/crowdin/lv.yml
  71. 0
      modules/my_project_page/config/locales/crowdin/nl.yml
  72. 0
      modules/my_project_page/config/locales/crowdin/pl.yml
  73. 0
      modules/my_project_page/config/locales/crowdin/pt-BR.yml
  74. 0
      modules/my_project_page/config/locales/crowdin/pt-PT.yml
  75. 0
      modules/my_project_page/config/locales/crowdin/ru.yml
  76. 0
      modules/my_project_page/config/locales/crowdin/sk.yml
  77. 0
      modules/my_project_page/config/locales/crowdin/sv-SE.yml
  78. 0
      modules/my_project_page/config/locales/crowdin/tr.yml
  79. 0
      modules/my_project_page/config/locales/crowdin/zh-CN.yml
  80. 0
      modules/my_project_page/config/locales/crowdin/zh-TW.yml
  81. 0
      modules/my_project_page/config/locales/en.seeders.yml
  82. 0
      modules/my_project_page/config/locales/en.yml
  83. 0
      modules/my_project_page/config/locales/js-en.yml
  84. 0
      modules/my_project_page/config/locales/media/en/.keep
  85. 0
      modules/my_project_page/config/locales/media/en/background-teaser-8-0v6.jpg
  86. 0
      modules/my_project_page/config/routes.rb
  87. 0
      modules/my_project_page/db/migrate/20180323130808_to_v710_aggregated_my_project_page_migrations.rb
  88. 0
      modules/my_project_page/doc/COPYRIGHT.md
  89. 0
      modules/my_project_page/doc/COPYRIGHT_short.md
  90. 0
      modules/my_project_page/doc/GPL.txt
  91. 0
      modules/my_project_page/frontend/legacy-app/components/projects-overview/overview-block.directive.ts
  92. 0
      modules/my_project_page/frontend/legacy-app/components/projects-overview/overview-page-layout.directive.ts
  93. 0
      modules/my_project_page/frontend/legacy-app/components/projects-overview/overview-textile-block.directive.ts
  94. 0
      modules/my_project_page/frontend/module/hal/resources/overview-resource.ts
  95. 0
      modules/my_project_page/frontend/module/main.ts
  96. 0
      modules/my_project_page/lib/api/v3/overview/overview_representer.rb
  97. 0
      modules/my_project_page/lib/open_project/my_project_page.rb
  98. 0
      modules/my_project_page/lib/open_project/my_project_page/engine.rb
  99. 0
      modules/my_project_page/lib/open_project/my_project_page/patches/textile_converter_patch.rb
  100. 0
      modules/my_project_page/lib/open_project/my_project_page/plugin_blocks.rb
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,270 +0,0 @@
AllCops:
TargetRubyVersion: 2.5
Exclude:
- db/schema.rb
AccessorMethodName:
Enabled: false
ActionFilter:
Enabled: false
Alias:
Enabled: false
AndOr:
Enabled: false
ArrayJoin:
Enabled: false
AsciiComments:
Enabled: false
AsciiIdentifiers:
Enabled: false
Attr:
Enabled: false
BlockLength:
Enabled: false
BlockNesting:
Enabled: false
CaseEquality:
Enabled: false
CharacterLiteral:
Enabled: false
ClassAndModuleChildren:
Enabled: false
ClassLength:
Enabled: false
ClassVars:
Enabled: false
CollectionMethods:
PreferredMethods:
find: detect
reduce: inject
collect: map
find_all: select
ColonMethodCall:
Enabled: false
CommentAnnotation:
Enabled: false
CyclomaticComplexity:
Enabled: false
Delegate:
Enabled: false
PreferredHashMethods:
Enabled: false
Documentation:
Enabled: false
DotPosition:
EnforcedStyle: leading
DoubleNegation:
Enabled: false
EachWithObject:
Enabled: false
EmptyLiteral:
Enabled: false
Encoding:
Enabled: false
EvenOdd:
Enabled: false
FileName:
Enabled: false
FlipFlop:
Enabled: false
FormatString:
Enabled: false
GlobalVars:
Enabled: false
GuardClause:
Enabled: false
IfUnlessModifier:
Enabled: false
IfWithSemicolon:
Enabled: false
InlineComment:
Enabled: false
Lambda:
Enabled: false
LambdaCall:
Enabled: false
LineEndConcatenation:
Enabled: false
LineLength:
Max: 130
MethodLength:
Enabled: false
ModuleFunction:
Enabled: false
NegatedIf:
Enabled: false
NegatedWhile:
Enabled: false
Next:
Enabled: false
NilComparison:
Enabled: false
Not:
Enabled: false
NumericLiterals:
Enabled: false
OneLineConditional:
Enabled: false
BinaryOperatorParameterName:
Enabled: false
ParameterLists:
Enabled: false
PercentLiteralDelimiters:
Enabled: false
PerlBackrefs:
Enabled: false
PredicateName:
NamePrefixBlacklist:
- is_
Proc:
Enabled: false
RaiseArgs:
Enabled: false
RegexpLiteral:
Enabled: false
SelfAssignment:
Enabled: false
SingleLineBlockParams:
Enabled: false
SingleLineMethods:
Enabled: false
SignalException:
Enabled: false
SpecialGlobalVars:
Enabled: false
# Forcing single quotes doesn't give any reasonable advantages. To the contrary:
# it forces you to change the quotes every time you want to add interpolation,
# newlines or other escape sequences (\n), or quotes (') to a string. Rubbish.
# Don't even think about performance. That never was a valid argument to begin with.
#
# For the record: using single quotes does NOT have any performance advantages.
# Even if it did, this would be a silly argument.
#
# Ideally we would just use double quotes everywhere but since that would result
# in innumerable rubocop offenses we will just disable this. Quote away.
StringLiterals:
Enabled: false
VariableInterpolation:
Enabled: false
TrivialAccessors:
Enabled: false
VariableInterpolation:
Enabled: false
WhenThen:
Enabled: false
WhileUntilModifier:
Enabled: false
WordArray:
Enabled: false
# Lint
AmbiguousOperator:
Enabled: false
AmbiguousRegexpLiteral:
Enabled: false
AssignmentInCondition:
Enabled: false
ConditionPosition:
Enabled: false
DeprecatedClassMethods:
Enabled: false
ElseLayout:
Enabled: false
HandleExceptions:
Enabled: false
LiteralInCondition:
Enabled: false
LiteralInInterpolation:
Enabled: false
Loop:
Enabled: false
ParenthesesAsGroupedExpression:
Enabled: false
RequireParentheses:
Enabled: false
UnderscorePrefixedVariableName:
Enabled: false
Void:
Enabled: false

@ -1,138 +0,0 @@
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2018 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# See doc/COPYRIGHT.rdoc for more details.
#++
###################################
#
# This file was generated by
# openproject-devkit.
#
# Do not modify this file directly!
#
###################################
language: ruby
rvm:
- 2.5.1
sudo: required
dist: trusty
cache:
bundler: true
directories:
- frontend/node_modules/foundation-apps
- public/assets
- app/assets/javascripts/bundles
- app/assets/javascripts/locales
branches:
only:
- master
- dev
- /^(stable|release)\/.*$/
env:
global:
- CI=true
- RAILS_ENV=test
before_install:
## Custom plugin instructions follow.
# Move the plugin into a subfolder. The plugin-provided Gemfile.plugins
# must refer to this folder.
- mkdir -p plugins/this
- echo `ls -a | tail -n+3 | grep -v plugins` plugins/this/ | xargs mv
# Get OpenProject.
# Doing the fetch detour as you cannot clone into the current directory.
- git init
- git remote add openproject https://github.com/opf/openproject.git
- git fetch --depth=1 openproject
- git checkout openproject/$TRAVIS_BRANCH
# work around https://github.com/travis-ci/travis-ci/issues/8969
- travis_retry gem update --system
# Don't install 1.16.3
- gem install bundler -v 1.16.2
# Install Node latest LTS
# This should only be necessary when preparing the cache or for npm test runs
# but installing later fails for unknown reasons.
- nvm install --lts
bundler_args: --binstubs --without development production docker
stages:
- prepare cache
- test
jobs:
include:
- stage: prepare cache
name: 'Prepare cache'
script:
- bash script/ci/cache_prepare.sh
- stage: test
name: 'plugins:units (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:units mysql
- bash script/ci/runner.sh plugins:units 1 1
- stage: test
name: 'plugins:units (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:units postgres
- bash script/ci/runner.sh plugins:units 1 1
- stage: test
name: 'plugins:features (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:features mysql
- bash script/ci/runner.sh plugins:features 1 1
- stage: test
name: 'plugins:features (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:features postgres
- bash script/ci/runner.sh plugins:features 1 1
- stage: test
name: 'plugins:cucumber (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:cucumber mysql
- bash script/ci/runner.sh plugins:cucumber 1 1
- stage: test
name: 'plugins:cucumber (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:cucumber postgres
- bash script/ci/runner.sh plugins:cucumber 1 1
addons:
chrome: stable
postgresql: "9.6"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save