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, {Component} from 'react'; | |
| import {Platform, StyleSheet, Text, View, Alert} from 'react-native'; | |
| import params from './src/params'; | |
| import MineField from './src/components/MineField' | |
| import { | |
| createMinedBoard, | |
| cloneBoard, | |
| openField, | |
| hadExplosion, |
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 { View, StyleSheet } from 'react-native' | |
| import Field from './Field' | |
| export default props => { | |
| const rows = props.board.map((row, r) => { | |
| const columns = row.map((field, c) => { | |
| return <Field {...field} key={c} | |
| onOpen={() => props.onOpenField(r, c)} | |
| onSelect={e => props.onSelectField(r, c)} /> |
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 createBoard = (rows, columns) => { | |
| return Array(rows).fill(0).map((_, row) => { | |
| return Array(columns).fill(0).map((_, column) => { | |
| return { | |
| row, | |
| column, | |
| opened: false, | |
| flagged: false, | |
| mined: false, | |
| exploded: false, |
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 { View, StyleSheet } from 'react-native' | |
| export default props => { | |
| return ( | |
| <View style={styles.container}> | |
| <View style={[styles.flagpole]}></View> | |
| <View style={[styles.flag]}></View> | |
| <View style={[styles.base1]}></View> | |
| <View style={[styles.base2]}></View> |
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 {View, StyleSheet } from 'react-native' | |
| export default props => { | |
| return ( | |
| <View style={styles.container}> | |
| <View style={styles.coreMine} /> | |
| <View style={styles.line} /> | |
| <View style={[styles.line, { transform: [{rotate: '45deg'}]}]} /> | |
| <View style={[styles.line, { transform: [{rotate: '90deg'}]}]} /> |
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 {View, Text, StyleSheet} from 'react-native' | |
| import params from '../configs/Params' | |
| import Mine from './Mine' | |
| import Flag from './Flag' | |
| export default props => { | |
| const {mined, opened, nearMines, exploded, flaggled} = props |
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
| 'use strict'; | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const Sequelize = require('sequelize'); | |
| const basename = path.basename(__filename); | |
| const env = process.env.NODE_ENV || 'development'; | |
| const config = require('../../config/database.js') [env]; | |
| const db = {}; |
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
| package com.example.administrador.myapplication2; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.widget.Button; | |
| import android.widget.EditText; | |
| import android.widget.Toast; |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".MainActivity"> | |
| <TextView android:id="@+id/txtHelloWorld" | |
| android:text="@string/hello_world" |
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
| <?php if ($this->pageCount): ?> | |
| <nav> | |
| <ul class="pagination"> | |
| <!-- Previous page link --> | |
| <?php if (isset($this->previous)): ?> | |
| <li> | |
| <a href="<?= $this->url($this->route, [], ['query'=>['page'=>$this->previous]]); ?>" aria-label="Previous"> | |
| <span aria-hidden="true">«</span> |
NewerOlder