Giter Club home page Giter Club logo

Comments (3)

Wrongsides avatar Wrongsides commented on September 26, 2024

Hi,

Thanks Jens, I hadn't thought of this, I'm just a bit wary of the extension messing with unintended URLs for example:

features.myorganisation.com

would be presumed to be a feature file (which it may not be). I'm thinking if I add additional matches for

file:///.feature?*
http:///.feature?*
https:///.feature?*

that should cover feature files with perameters & hopefully not interfear with peoples standard browsing experiance. I'll make this change to the project asap so I can test it, and look at updating the chrome store app after that.

from gherkin-viewer.

jenswl avatar jenswl commented on September 26, 2024

The pattern you proposed in your last comment should fit better than my one.

Beside that I just discovered that in case of watching a feature file in Stash it creates a https://myUrl/test.feature URL - but providing the whole Stash UI components around it. That means that in your current implementation the plugin would destroy the page layout. A solution could be to check for differences between your initial feature file source code (did you want to apply it on regular html content as well?) and a normal (html site) by e.g. searching for certain tags before applying the css changes.

Best regards,

Jens

from gherkin-viewer.

Wrongsides avatar Wrongsides commented on September 26, 2024

Sorted the pattern matching, should work now, but yes page layouts are going to be broken :( I would like it to format the Gherkin only within the actual Gherkin text. Should be able to do that if I inject between the tags rather than the whole page but I'll have to do a bit of research and prototyping first, I'll look into this next I think, then examples support and then take on the multi language support.

from gherkin-viewer.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.