GithubHelp home page GithubHelp logo

neontribe / cottage-booking Goto Github PK

View Code? Open in Web Editor NEW
4.0 11.0 2.0 673 KB

Cottage Booking front end booking path using CanJS

Home Page: https://neontribe.co.uk

License: GNU General Public License v2.0

JavaScript 70.01% HTML 26.21% CSS 3.78%

cottage-booking's Introduction

NOTE: Issue tracking has been moved to jira.neontribe.co.uk

Cottage Booking Path using canJS

Build Status

Versioning

I attempt to follow the Semver version ethos

Download dependencies

This doesn't work on windows, the nested node_modules exceeded max filename size

npm install
./node_modules/.bin/grunt develop
# optionally you could, so you could just do grunt develop
sudo npm install grunt-cli -g

Grunt tasks

Note: The release uses the same syntax as bumpup

# default grunt task is to build and create the prod.zip file
grunt

# buildViewFiles will build the view.js file used to
# manage the views for each control 
# ( see controls/form/views.js for a good example )
grunt buildViewFiles

# this will release and add a release to the releases 
# The release should include a zip of build production files
# TODO: add changelog
grunt release            # Default patch release
grunt release:minor      # Minor release
grunt release:minor:1458 # Minor release with buildtype suffix

Deployment

Take the prod.zip file and add it to the booking module

$ tree .
├── prod
│   └── prod.zip
├── templates
│    ├── booking_complete_email_customer.tpl.php
│    └── tabs_booking_payment_complete.tpl.php
├─── tabs_booking_payment_error.tpl.php
├── tabs_booking.admin.inc
├── TabsBookingBlocks.class.php
├── tabs_booking.booking.inc
├── tabs_booking.enquiry.inc
├── tabs_booking.info
├── tabs_booking.install
├── tabs_booking.metatag.inc
├── tabs_booking.module
├── tabs_booking.path.inc
├── TabsBookingSession.class.php
└── TabsBookingUtils.class.php

$ cd prod
$ wget -O prod.zip https://github.com/neontribe/cottage-booking/releases/download/<version>/prod.zip
$ unzip -o prod.zip
$ git commit -am 'Include javascript version <version>'
$ drush cc all

Tip n tricks

Connect the dev project to an existing drupal

/cottage-booking/app/cottage_booking.html?noFixture=1&apiRoot=http://localhost/zz/

Symlink the project into a drupal

tobias@tobias tabs_booking $ pwd
/var/www/html/zz/sites/all/modules/custom/nt_tabs/tabs_booking
tobias@tobias tabs_booking $ ll prod
lrwxrwxrwx 1 tobias tobias 57 Oct 23 10:21 prod -> /home/tobias/workspace/Cottaging/cottage-booking/app/prod/
tobias@tobias tabs_booking $ 

cottage-booking's People

Contributors

falconx avatar heydon avatar katjam avatar ob6160 avatar robpre avatar tobybatch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cottage-booking's Issues

Prev / Next accessibility

Previous and next links for calendars do not have hrefs and are consequently not focusable. Either add tabindex="0" or an href with dummy value.

display errors as inline markup rather than tooltips

so html

<div>
    <label for="username">Your username</label>
    <input class="errors" type="text" id="username" aria-describedby="username-tip" >
    <div role="tooltip" id="username-tip">There is an error</div>
</div>
:input.errors + [role="tooltip"] {
    display: none;
}
:input.errors:focus + [role="tooltip"] {
    display: block;
}

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.