※一部省略
src
├── common
│ ├── components
│ ├── containers
│ └── Likes
│ ├── actions.js
| # Protocol: マイクロコミット合意プロトコル | |
| **【目的】** | |
| - ユーザーがシステムの全容を「完全に理解しながら」構築するために、すべての実装プロセスを最小単位で可視化・直列化する。 | |
| - 情報量が多すぎると、ユーザーが疲弊するため、情報量をそのときの最小単位にすること | |
| **Rule 1: 完全網羅と不可視化の禁止 (No Skipping)** | |
| - 複雑な論点だけでなく、**「自明な実装」「定数定義」「設定ファイルの作成」などの単純作業も決してスキップしてはならない。** | |
| - すべての工程を「最小の構成要素(ブロック)」に分解し、必ず **1つずつ** 提示せよ。 | |
| - 「その他はよしなにやっておきました」は厳禁とする。 |
| { | |
| "data": { | |
| "result": { | |
| "auctions": [], | |
| "code": 0, | |
| "head": { | |
| "docsFound": 0, | |
| "docsReturn": 0, | |
| "searchTime": 192 | |
| }, |
| { | |
| "data": { | |
| "result": { | |
| "auctions": [ | |
| { | |
| "catId": "9", | |
| "custContent": "{'Category': 'carpet', 'Price1_unit': '\\xe6\\x9e\\x9a', 'Archlog_url': 'https://www.arch-log.com/archlog.html?id=5b7a20645f934425bf192de318dabc61', 'Price3_unit': '\\xe7\\xae\\xb1', 'Name': 'GA3684', 'Img': 'V:\\\\1911_CarpetApp\\\\carpet_rendering\\\\carpet\\\\touri\\\\GA-3600\\\\GA3684', 'Category_text': '\\xe8\\xa3\\xbd\\xe5\\x93\\x81\\xe7\\xa8\\xae\\xe5\\x88\\xa5\\xef\\xbc\\x9a\\xe5\\xba\\x8a\\xe6\\x9d\\x90\\\\n \\xe8\\xa3\\xbd\\xe5\\x93\\x81\\xe3\\x82\\xbf\\xe3\\x82\\xa4\\xe3\\x83\\x97\\xef\\xbc\\x9a\\xe3\\x82\\xab\\xe3\\x83\\xbc\\xe3\\x83\\x9a\\xe3\\x83\\x83\\xe3\\x83\\x88', 'Series': 'GA-3600 texture4', 'Brand': 'GA-3600', 'Price_text': '\\xe6\\x9e\\x9a\\xe5\\x8d\\x98\\xe4\\xbd\\x8d\\xef\\xbc\\x9a1,900\\xe5\\x86\\x86/\\xe6\\x9e\\x9a\\\\ \\xe5\\xba\\x83\\xe3\\x81\\x95\\xe5\\x8d\\x98\\xe4\\xbd\\x8d\\xef\\xbc\\x9a7,600\\xe5\\x86\\x86/\\xe3\\x8e\\xa1\\\\ \\xe7\\xae\\xb1\\xe5\\x8d\\x98\\xe4\\xbd\\x |
| require 'open-uri' | |
| require 'uri' | |
| require 'net/https' | |
| class ImageSearch | |
| include ActiveModel::Model | |
| attr_accessor :image_base64 | |
| def initialize(attrs) |
| // @flow | |
| import React, { Component } from 'react'; | |
| import { View, FlatList, ActivityIndicator } from 'react-native'; | |
| import { connect } from 'react-redux'; | |
| import { denormalize } from 'normalizr'; | |
| import { Header } from './components'; | |
| import type { Diary, Procedure } from '../../entities'; | |
| import diarySchema from '../../entities/diaries/schema'; | |
| import { fetchNewDiaries, fetchNewDiariesMore, refreshNewDiaries } from './actions'; | |
| import { fetchProcedures } from '../../entities/procedures/actions'; |
| class Notification < ApplicationRecord | |
| belongs_to :user | |
| belongs_to :notificatable, polymorphic: true | |
| default_scope -> { order("created_at desc") } | |
| after_create :send_push_notification | |
| private | |
| def send_push_notification |