Sha256: 3764a39ec6423140ee52d475b9438539b7682f995c639ed9b1349595e2a9a34f

Contents?: true

Size: 1.84 KB

Versions: 3

Compression:

Stored size: 1.84 KB

Contents

KManager.action :project_plan do
  action do

    DrawioDsl::Drawio
      .init(k_builder, on_exist: :write, on_action: :execute)
      .diagram(rounded: 1, glass: 1)
      .page('In progress', theme: :style_03, margin_left: 0, margin_top: 0) do
        h5(x: 300, y: 0, w: 400, h: 80, title: 'DrawIO DSL')
        # p(x: 350, y: 40, w: 400, h: 80, title: 'Project plan - In progress')

        grid_layout(y: 90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)

        todo(title: 'add diff tool open in vscode option')
      end
      .page('To Do', theme: :style_02, margin_left: 0, margin_top: 0) do

        # h5(x: 300, y: 0, w: 400, h: 80, title: 'DrawIO DSL')
        # p(x: 350, y: 40, w: 400, h: 80, title: 'Project plan')

        todo(title: 'cli support for diff')
        todo(title: 'cli support for profile')
        todo(title: 'cli support for rails new (rag new should work like rails new) - buggy, need to work through')
        todo(title: 'need an option for deleting target project path') # FileUtils.rm_rf(instance.target_path)

        grid_layout(y:90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)

      end
      .page('Done', theme: :style_06, margin_left: 0, margin_top: 0) do

        # h5(x: 300, y: 0, w: 400, h: 80, title: 'DrawIO DSL')
        # p(x: 350, y: 40, w: 400, h: 80, title: 'Done')

        todo(title: 'add diff tool supporting lhs only, rhs only, same and different')
        todo(title: 'add project plan to do list')

        grid_layout(y:90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)

      end
      .cd(:docs)
      .save('project-plan/project.drawio')
      .export_svg('project-plan/project_in_progress', page: 1)
      .export_svg('project-plan/project_todo'       , page: 2)
      .export_svg('project-plan/project_done'       , page: 3)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_app_generator-0.0.13 .builders/generators/project-plan.rb
rails_app_generator-0.0.12 .builders/generators/project-plan.rb
rails_app_generator-0.0.11 .builders/generators/project-plan.rb