This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Deployment | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| test-build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dist: xenial | |
| sudo: false | |
| language: node_js | |
| node_js: | |
| - "10" | |
| cache: | |
| directories: | |
| - ./node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deploy: | |
| needs: test-and-build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v2 | |
| with: | |
| name: build-artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Deployment | |
| on: | |
| push: | |
| branches: ['**'] | |
| jobs: | |
| test-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Deployment | |
| on: | |
| push: | |
| branches: ['**'] | |
| jobs: | |
| yarn-install-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const initialState = { | |
| moves: 0, | |
| gameComplete: false, | |
| imageNumber: 1, | |
| tiles: [], | |
| size: undefined, | |
| gameId: undefined, | |
| gameName: undefined | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { connect } from 'react-redux' | |
| import TileView from './TileView' | |
| import { selectTile } from '../reducers/actions'; | |
| import PropTypes from 'prop-types'; | |
| const Puzzle = (props) => { | |
| const width = Math.min(window.innerWidth, window.innerHeight); | |
| const tileWidth = width / props.size; | |
| const tileWrapperStyle = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const initialState = { | |
| turnNo: 1, | |
| numClicksWithinTurn: 0, | |
| selectedId: undefined, | |
| gameComplete: false, | |
| imageNumber: 1, | |
| tiles: [], | |
| size: undefined, // number of rows/columns in the puzzle matrix | |
| gameId: undefined, | |
| gameName: undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { click } from 'ol/events/condition'; | |
| import Feature from 'ol/Feature'; | |
| import Select, { SelectEvent } from 'ol/interaction/Select'; | |
| import VectorLayer from 'ol/layer/Vector'; | |
| import Map from 'ol/Map'; | |
| import { Fill, Icon, Style, Text } from 'ol/style'; | |
| export function styleMarkersAsDeselected(features: Feature[]) { | |
| if (!features) return; | |
| features.forEach((f) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private setupMap(input: MapInput) { | |
| this.positions = input.markerPosisitons; | |
| this.userPos = input.userPos; | |
| if (!this.map) { | |
| this.initilizeMap(); | |
| } | |
| const view = this.map.getView(); | |
| if (this.positions.length > 0) { |
NewerOlder