Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Basic vue-app-setup #70

Merged
merged 6 commits into from
Dec 30, 2016
Merged

Basic vue-app-setup #70

merged 6 commits into from
Dec 30, 2016

Conversation

dneukirchen
Copy link
Contributor

@dneukirchen dneukirchen commented Dec 27, 2016

This PR includes my suggestion for a vue2 based application in the joomla component environment.

It also includes a basic list view using vue2 and the github file api (since we dont have an api yet).

Test instructions

  • Just open the media manager component in the backend

Developmnt instructions

  • Change directory to administrator/components/com_media
  • Run npm install to install the dependencies (only once on initial setup)
  • Make your changes to the frontend application
  • Run npm run buildto build the app (this will generate a single javascript file media/media/js/app.js)

@dneukirchen dneukirchen self-assigned this Dec 27, 2016
@dneukirchen dneukirchen added this to the Milestone 1 milestone Dec 27, 2016
Copy link
Contributor

@laoneo laoneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What for an environment do we need when we want to do then development on that app? How do we set up this environment? If possible update the description of the PR with that information that reviewers can set up their dev machine to test this PR. Thanks.

@dneukirchen
Copy link
Contributor Author

Updated description

this._updateLeafByPath(this.tree, this.dir, content);
}).error(() => {
alert("Error loading directory content.");
})
Copy link
Contributor

@laoneo laoneo Dec 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be interesting to see how we will bring in multilingual support into the vue app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the final solution for notifications & error handling. Its just a placeholder.
We have to implement vue notifications in a more abstract way, so that we can use it across components, services and views.

For multilang support we will use something like https://github.com/kazupon/vue-i18n and use the default joomla language files.

Copy link
Contributor

@yvesh yvesh Dec 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dneukirchen

We can also use Joomla core js library here.

Joomla.JText._('COM_MEDIA_LANGUAGE_STRING');

and add them with JText::script.. (I would load a whole language file into it, so we don't need to care on that)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes... that is also a possible solution.

I created an issue for the multilang support: issue #73

@laoneo laoneo merged commit a027e11 into milestone1 Dec 30, 2016
@laoneo laoneo deleted the feature/vue-app-setup branch December 30, 2016 11:19
@dgrammatiko
Copy link
Contributor

dgrammatiko commented Dec 30, 2016

All .vue and js files are STATIC files and need to be moved to /media/media/js and /media/media/vue respectively. We are doing it wrong here 😕

EDIT: Ignore this comment, there is some grunt magic that I overlooked

laoneo pushed a commit that referenced this pull request Feb 23, 2017
laoneo pushed a commit that referenced this pull request Jun 29, 2017
…ts (#16743)

* System tests with codeception 2.2

* System tests with codeception 2.2

* System tests with codeception 2.2

* System tests with codeception 2.2

* Instructions for testing

* Instructions for testing

* Remove useless header

* [tests] new convention for locating elements

Adds Gherkin Pages and Step Objects as sample of useage

* Update Codeception to 2.2.1

* Writing new composer.lock file for update

* Adding users.feature scenarios using gherkin

* Adding content.feature scenarios using gherkin

* Adding users.feature file

* Adding scenarios for access level and user group

* Adding Assert module for assertion

* Implementing Pageobject

* Passing $title and $content as a argument

* Implement step and page object in users.feature file

* Add missing pages

* New approach to manage suite configuration

* Fix the issue_#29 and issue_#31

* Fix the issue_#30

* Fix the issue #37

* Remove the commented code

* Every page object have the $url property

* Update Codeception to version 2.2.2

* Create a constant for waiting times

* Adding project information in README.md

* update readme

* Update README.md for TIMEOUT

* Checking if TIMEOUT is not already set

Pull Request for Issue #45 .

Update a constant for waiting times

It contains fix related to #47

* Using contants for timeouts

* Improvement in frontend feature

* improve the scenario

* correct typo and improvement

* Implement user frontend scenarios

* Updated travis to only run system tests and no unit tests

* add how to create snippets

* category Scenario for issue #35

* Fix missing call to Step object

* Move administrator login to the current page object pattern 

* Move administrator login to the current page object pattern
* Remove Given Joomla CMS is installed
* Update composer
* Fix LoginPage
* Fix missing call to step object
* Use genering url name for page variable

* Simplify users manager table xpath

* Fix typo error

* Allow robo to run individual .feature tests (#58)

* Allow robo tu run individual .feature tests

* Improve running individuals tests documentation

* Implement the categories scenario

* slove xpath issue and implement frontend scenario

* Handle waiting for iframe and menu edit view to save menu item

* Updating selenium to 2.53.1

* Updated travis integration for running tests (#60)

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Updated travis integration for running tests

* Working on Travis

* Working on Travis

* Working on Travis

* Working on Travis

* Adding docblocks and code style improvements

* Adding phpdoc header and code style improvement in acceptance tester
* [dockblock] Adding in Admin page object

* [dockblock] Adding dockblock in content manager page object

* [code style] Improve name of variable

* [dockblock] Adding dockblock in control panel page object
* [dockblock] Using AcceptanceTester.Page as a subpackage
* [dockblock] Adding dockblock in login page object
* [dockblock] Adding docblock in user acl page object
* [dockblock] Adding dockblock in user group page object
* [dockblock] Adding dockblock in user manager page object
* [code style] Adding code style improvement in acceptance tester class
* [docblock] Adding docblock in acceptance helper class
* [docblock] Adding docblock in functional and unit testing class
* [docblock] Adding docblocks and code style improvements in site page objects
* [code style] Adding docblock and code style improvements
* [code style] Adding code style improvement in acceptance tester
* [docblock] Adding docblock in content step object
* [docblock] Adding docblock and code style improvement in category step object
* Adding category feature execution using Robo
* [docblock] Adding docblock and code style improvement for category and menu page objects
* Rearrange tab based on latest joomla
* [docblock] Adding docblock and code style improvement in login and user step objects
* [docblock] Adding docblock and code style improvement in login and user step objects
* [docblock] Adding docblock and code style improvement in user frontend step objects
* Remove extra blank lines
* Remove comments from robo

* Using __DEPLOY_VERSION__ instead of static 3.7

* Forcing 127.0.0.1 for /etc/hosts in travis

* [code optimize] code optimization and remove duplicate codes (#65)

* [code optimize] Combine save method for category and content

* Using page object dynamically

* Revert "[code optimize] Combine save method for category and content"

This reverts commit 82682c5d57a14707c191736a57f22011c2fd54be.

* Usign dynamic wait for test string

* [duplicate] Handle duplicate code for user form

* Using common annotation for create new user

* [duplicate] Using common annotation for login in frontend scenarios

* [duplicate] Using page object method to have user with username

* [duplicate] Using page object method to have category with given title

* [duplicate] Using page object method to have article with given title

* [optimize] Reusing code by using oop concept

* Resolve error in creating instance

* Reuse fill article form code

* Create Admin step

* Using common method to search and select

* Using common method for see system message

* Using common method for search

* Remove duplicate code

* Remove duplicate code for delete and empty

* Using property from parent class

* Using Admin step as a parent class

* Cleanup acceptance tester

* Using generic page object properties

* Updating travis and Robo to the final structure

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* Updating and moving codeception-build script

* change the tests with generic name (#68)

* change the tests with generic name

* Rename test user1 to User One

* Rename the email and login name

* Remove acceptance.suite.yml file from git list (#70)

* Remove acceptance.suite.yml file from git list

* Remove unnecessory _generated folder

* Fix issue #57 Update frontend_user tests  (#61)

* Fix issue_#57 Update frontend_user tests as per commented in PR #51

* [codestyle] Adding docblock and code style improvement in Robo and user frontend

* Verify in backend that user is created

* Fix scenario in user_frontend.feature to proper English

* Using alternative of system message container for assurance (#72)

* Using alternative of system message container for assurance in article feature

* Improve code and convert into page object

* Convert system message checks in category feature

* Convert system message container in user feature

* Repair user scenarios

* CodeStyle for the Tests (#74)

* codestyle

* Small tweeks to the RoboFile (#75)

* robo

* robo

* Changed all references to /tests as the root directory to /tests/codeception. (#78)

* Update README.md

Changed all references to /tests as the root directory to /tests/codeception.

* Update README.md

Corrected errors in the first PR

* Changed a AND into a WHEN in the file tests/codeception/acceptance/users_frontend.feature

* Update README.md (#84)

* Update README.md

Corrected two typos and inserted a warning for Firefox version above 47

* Update README.md

Corrected version numbers. 
In composer.json i found Selenium WebDriver 2.53.1
Before the current firefox version 49 there was version 45. 
With version 45.0.2 I have no problems. With version 49.0.1 I had problems.

* Update README.md

Corrections

* correction language category feature - UK to en-GB (#85)

* Update to latest selenium server standalone version (#87)

* Add a scroll to a element out of fold (#88)

* Updating the Login Step File removing hardcoded username

* Updating the feature files background step

* Updating the background step

* This should take care of the failure

* Updating the Login Step

* Trying to add a wait

* Opening the Account Details Tab

* Updating Manager Page

* Adding an Extension Manager Class

* Adding reference

* Adding Extension Step File

* Adding Extension Feature file

* Fixing another failure

* Work out of the box on Windows... (#90)

* Adding execution in Travis

* This update was a must

* Updating Robo File

* Updating Robo

* Adidng Banner Step

* Adding Feature

* Adding both the Tests

* Removing Accept Popup, not sure why this stuff is needed

* back to pavilion

* Codestyle (#95)

* Updating branch

* I have to remove it now

* Removing uninstall Extension

* Tests now run in chrome, firefox, edge and IE (#96)

* Now works on chrome, firefox, edge and IE

* update branch

* update branch

* fix mac detection and codestyle

* updating dependencies

* Update composer lock (#100)

* Remove curl check (#101)

We don't need it.

* Better wrapper method to display search tools (#102)

* Feature/add database module (#99)

* Add Database module

# Conflicts:
#	tests/codeception/acceptance.suite.dist.yml

* Add documentation

* Remove dump configuration

* Update db configuration

* Create the test database before the tests

* Revert old dependencies composer.lock (#104)

* Fix typo (#109)

* Fix typo

* Code style

* Add new line before try catch

* Add a Joomla Database Helper (#108)

* Add JoomlaDb Helper

* Fix configuration

* Update to latest joomlabrowser

* Move AcceptanceHelper to the  codeception default location for helpers (#111)

* Use default path for the AcceptanceHelper

* Use codeception defaults for helper files

* Order enabled modules alphabetical

* Remove old tests (#115)

* Remove the UserLoginCest

The UserLoginCest does not define any scenarios and is not used anywhere.

* Remove UserCest

It is not used anymore

* Composer update (#118)

Update selenium-server-standalone to version 3.0.1.2 for working on linux with chrome

* update version number in composer.json for JoomlaBrowser (#121)

* update version number in composer.json for JoomlaBrowser

* composer.lock

* Fix in the RoboFile in the env parameter

* Update composer

* Update to latest selenium server version in composer.json

Updating dependencies in composer file

* Working on clean test branch

* Working on sample tests

* bit cs

* bit cs

* Removed old steps

* revert readme (#132)

* revert readme

* readme

* Further cleanup

* Cleanup

* Cleanup

* Thank you @brianteeman

* Thank you @brianteeman
laoneo pushed a commit that referenced this pull request Feb 2, 2018
* Migrate JS vars to use the script options storage

* Remove the plugin event allowing to dynamic toggle JED alert

* PHPCS pass

* Put back plugin group import, migrate installer plugin to use the same event other plugins do so display is controlled the same way consistently

* Activate tab immediately in first spot

* Oops
laoneo pushed a commit that referenced this pull request May 18, 2018
…gins/system/debug/debug.php

Remove inline scripts/plugins/system/debug/debug.php
laoneo pushed a commit that referenced this pull request Oct 15, 2018
* Load correct core files of override files (#2)

Start implements loadcorefile() in administrator/components/com_templates/Model/TemplateModel.php

* CS (#3) Coding Standards

* codingstandards

* codingstandards (#4)

* Test (#6)

Phase 2 (2 part) Mechanism to find correct core file and implementation.

* Remove Notice: Only available for html-folder

* Remove Warning if core file not found (#11)

Thanks.
So one part of the issue joomla-projects/gsoc18_override_management#12 is done.

* Implement the diff view in template manager 

Implement the diff view in template manager

* coding standard (#17)

* fix diff (#18) Fix bug in path in case of administrator template override.

Fix bug in path in case of administrator template override.

* Notification after update and TEST (#16)

Find changed files of overridden files and show message.

* coding standard (#21)

* correction

* correction (#26)

* Correcthtmlpath (#27)

* correction

* change oldhtml to newhtml

* List of updated override files. (#30)

* addcss (#34)

* Final Product  (#39)

Core and Diff view
Updated override history list.
Quick icon notification plugin.
Override control plugin.

* save 3 lines :)

* New feature show status. (#47)

show status in com_template view templates

* link

* corrected namespace

* Button to Switch (#35)

* wip add Switcher

* wip style switcher

* wip style switch make inline and change on off text

* wip start with js

* wip js

* wip delete buttons and make js more robust

* wip save to storage

* wip delete old code

* wip

* wip lint

* wip css

* set default value for switcher

* wip make switcher blue

* wip

* wip

* build

* correct names

* create new functions

* fist test code

* use onchange

* undo installer.min.js

* add forgotten new line at the end of css file

* correct align

* correct compare.es6 - only deleted the toggle part

* correct compare.js - only deleted the toggle part

* wip

* reduce timeout

* wrap in funcitons

* wip

* add use strict to both js-files(compare and toggle)

* add the timeout value of 500 again, because 200 are not enought in my case

* use css class 'active' for toggle views

* add strict

* time out for editor

* wip

* improvments use newActive and switch

* correction

* width of switcher-spans

* correct align

* do not use global

* wip

* removed timeouts

* JTEXT to TEXT

* forgotton last line

* deleted duplicated comments

* css fix align

* use unnamed functions in es6

* Sql files for fix database (#50)

* sql files for database fix

* delete space

* Suggestion for displaying Dates in view updates files (#52)

Correct Dates and do not use date of file any more

* Store Date as UTC and show it in server time zone (#57)

* modified and created date are created and stored in UTC

* convert dates for displaying in model

* spar a loop

* normalize timezone in view

* use language constants for dateformat

* JToolbarHelper to ToolbarHelper

* CS

* namespace

* plural

* name

* clean

* text

* fx

* sin

* files

* s

* Suggestion for language strings (#60)

* language strings

* correct typo

* delete media folder plg_quickicon

* add folder plg_quickicon to build/media_src

* delete files in media folder

* Move media folder - System (#66)

* multi

* cs

* delete files in media folder for joomla toolbar (#67)

* Fix button switchers style. (#70)

* button

* CS

* changed uitab.addTab for updated files

* Bring back core.js changes. (#69)

* core.js

* const

* fix

* form

* core

* hound

* CS

* scopr

* grid

* alpha

* cs

* lang

* only override file

* lang

* override lang installer

* Cs

* sub

* Update list of core extensions (#71)

* Language changes (#76)

* update

* Update en-GB.com_templates.ini

* override JLIB_HTML_PUBLISH_ITEM

this is the hover text on the publish icon in the list of files

* Change icon (#74)

change the icon to use an outline for more consistency

* lang

* not core (#75)

* not core

* Update en-GB.plg_installer_override.ini

* namespace

* cs

* Updated files (#82)

* Update default_updated_files.php

* Update en-GB.com_templates.ini

* Update en-GB.com_templates.ini (#81)

* Update en-GB.plg_quickicon_overridecheck.ini (#80)

* Update en-GB.plg_quickicon_overridecheck.ini (#79)

* remove space (#78)

* Update en-GB.plg_quickicon_overridecheck.ini

* Update en-GB.plg_quickicon_overridecheck.sys.ini

* remove hardcoded id

* null get function

* state

* clean

* More changes "core" to "original" (#85)

* cs

* update

* plural
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants