Skip to content
Open

V3 #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5b4183f
updated ui
Aug 25, 2019
cd0ee92
updated ui 3
Aug 25, 2019
19ca881
added categories
Aug 25, 2019
37f5aaf
set items to in and out of stock
Aug 26, 2019
6a58194
set items to in and out of stock
Aug 26, 2019
33a109c
set items to in and out of stock
Aug 26, 2019
3d4aa42
minor bug fix
Aug 26, 2019
dfb4ace
migrated to pilvo fixed minor bugs still testing
Aug 26, 2019
5382d0a
minor bug fix deployed to gcloud
Aug 27, 2019
4884f9a
minor bug fix deployed to gcloud
Aug 27, 2019
a832184
minor bug fix added back btn
Aug 27, 2019
b96cbc9
minor bug fix
Aug 27, 2019
a81255e
minor bug fix
Aug 27, 2019
3e82fca
minor bug fix
Aug 27, 2019
1f58d4b
added error handling fixed a few bugs
Aug 27, 2019
3b2ae36
minor bug fix
Aug 27, 2019
c05568a
revoked sms duties except for initialization
Aug 28, 2019
f11e906
minor big fix
Aug 28, 2019
b66b4d1
added manifest
Aug 28, 2019
bd4397b
minor bug fix
Aug 28, 2019
925686a
minor bug fixes in time for pickup
Aug 28, 2019
cf04a08
email recepits after checkout
Aug 28, 2019
e8af413
minor bug
Aug 28, 2019
725ed74
minor bug fix whitespace
Aug 29, 2019
4e72978
UI update
Aug 29, 2019
d829675
UI update
Aug 29, 2019
0d51dfe
UI update
Aug 29, 2019
e5d5183
UI update
Aug 30, 2019
022a7dd
minor bug fix
Aug 30, 2019
849eeb2
adding promo support
Aug 30, 2019
bb0b170
added sms promo support
Aug 31, 2019
88e5965
change payapal email to env
Aug 31, 2019
6ccf9aa
minor bug fix
Aug 31, 2019
555d7c1
minor bug fix
Aug 31, 2019
fa01186
minor bug fix
Aug 31, 2019
b42654c
added kiosk mode still in dev
Aug 31, 2019
f28a7d7
still working minor update
Aug 31, 2019
0a58301
minor bug fix
Aug 31, 2019
c50a62c
using standard env still testing
Sep 1, 2019
4a96ba6
added stripe support
Sep 2, 2019
ad5e7e1
added stripe support minor bug fixes
Sep 2, 2019
3e431b8
added giftcards and minor updates
Sep 3, 2019
7c59472
reinforced payment verification added error screens
Sep 3, 2019
30ed15a
reinforced payment verification added error screens
Sep 3, 2019
f4e5e30
reinforced payment verification added error screens for giftcard
Sep 3, 2019
47d3810
added sms notifiaction when order is filled
Sep 3, 2019
30de84a
minor bug fix added sms verification for order completetion
Sep 3, 2019
016f09c
minor bug fixes added autogen of gsheets
Sep 4, 2019
54425aa
minor bug fix in paying for gift cards
Sep 4, 2019
f2b435e
minor bugfix
Sep 4, 2019
57f99a7
added more detailed daily logs
Sep 4, 2019
28e117a
adding postmates integration
Sep 7, 2019
76dc1b1
added first part of delivery
Sep 8, 2019
9392f9d
reinforced firebase security
Sep 9, 2019
156f618
saving addresses
Sep 11, 2019
2629766
almost done fully integrating delivery
Sep 12, 2019
e5391cc
finalized delivery
Sep 12, 2019
c8e6eaa
minor bug fix
Sep 12, 2019
37f6e87
re added robot support
Sep 12, 2019
4f2d4ea
restructed DB users are universal
Sep 12, 2019
9032871
updatesd sms Promos
Sep 12, 2019
38790b6
inital commit v3
Oct 1, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion .Python

This file was deleted.

1 change: 0 additions & 1 deletion .ebignore

This file was deleted.

19 changes: 19 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

GenJson.py
/flask_session/
/flask_session
/bin
/include
/lib
Expand Down
2 changes: 1 addition & 1 deletion .idea/SMSorder.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/emacs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .idea/jsonSchemas.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5,671 changes: 308 additions & 5,363 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file added __pycache__/main.cpython-36.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
env: standard
runtime: python37
entrypoint: gunicorn -b :$PORT main:app
runtime_config:
python_version: 3.6
2,000 changes: 0 additions & 2,000 deletions application.py

This file was deleted.

54 changes: 26 additions & 28 deletions bin/activate
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,33 @@
# you cannot run it directly

deactivate () {
unset -f pydoc >/dev/null 2>&1

# reset old environment variables
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
PATH="$_OLD_VIRTUAL_PATH"
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
hash -r 2>/dev/null
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r
fi

if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
PS1="$_OLD_VIRTUAL_PS1"
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1:-}"
export PS1
unset _OLD_VIRTUAL_PS1
fi

unset VIRTUAL_ENV
if [ ! "${1-}" = "nondestructive" ] ; then
if [ ! "$1" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
Expand All @@ -48,31 +45,32 @@ PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH

# unset PYTHONHOME if set
if ! [ -z "${PYTHONHOME+_}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
# could use `if (set -u; : $PYTHONHOME) ;` in bash
if [ -n "${PYTHONHOME:-}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
unset PYTHONHOME
fi

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1-}"
if [ "x" != x ] ; then
PS1="${PS1-}"
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
if [ "x(SMSorder) " != x ] ; then
PS1="(SMSorder) ${PS1:-}"
else
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
else
PS1="(`basename \"$VIRTUAL_ENV\"`) ${PS1-}"
PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
fi
fi
export PS1
fi

# Make sure to unalias pydoc if it's already there
alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true

pydoc () {
python -m pydoc "$@"
}

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
hash -r 2>/dev/null
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r
fi
48 changes: 15 additions & 33 deletions bin/activate.csh
Original file line number Diff line number Diff line change
@@ -1,55 +1,37 @@
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>.
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>

set newline='\
'

alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate'

# Unset irrelevant variables.
deactivate nondestructive

setenv VIRTUAL_ENV "/Users/caleb/Documents/GitHub/SMSorder"

set _OLD_VIRTUAL_PATH="$PATH:q"
setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"

set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"


if ("" != "") then
set env_name = ""
else
set env_name = '('"$VIRTUAL_ENV:t:q"') '
endif
set _OLD_VIRTUAL_PROMPT="$prompt"

if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then
if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then
set do_prompt = "1"
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
if ("SMSorder" != "") then
set env_name = "SMSorder"
else
set do_prompt = "0"
endif
else
set do_prompt = "1"
endif

if ( $do_prompt == "1" ) then
# Could be in a non-interactive environment,
# in which case, $prompt is undefined and we wouldn't
# care about the prompt anyway.
if ( $?prompt ) then
set _OLD_VIRTUAL_PROMPT="$prompt:q"
if ( "$prompt:q" =~ *"$newline:q"* ) then
:
if (`basename "VIRTUAL_ENV"` == "__") then
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
else
set prompt = "$env_name:q$prompt:q"
set env_name = `basename "$VIRTUAL_ENV"`
endif
endif
set prompt = "[$env_name] $prompt"
unset env_name
endif

unset env_name
unset do_prompt

alias pydoc python -m pydoc

rehash
84 changes: 29 additions & 55 deletions bin/activate.fish
Original file line number Diff line number Diff line change
@@ -1,99 +1,73 @@
# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
# Do not run it directly.
# This file must be used with ". bin/activate.fish" *from fish* (http://fishshell.org)
# you cannot run it directly

function _bashify_path -d "Converts a fish path to something bash can recognize"
set fishy_path $argv
set bashy_path $fishy_path[1]
for path_part in $fishy_path[2..-1]
set bashy_path "$bashy_path:$path_part"
end
echo $bashy_path
end

function _fishify_path -d "Converts a bash path to something fish can recognize"
echo $argv | tr ':' '\n'
end

function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
function deactivate -d "Exit virtualenv and return to normal shell environment"
# reset old environment variables
if test -n "$_OLD_VIRTUAL_PATH"
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
if test (echo $FISH_VERSION | tr "." "\n")[1] -lt 3
set -gx PATH (_fishify_path $_OLD_VIRTUAL_PATH)
else
set -gx PATH $_OLD_VIRTUAL_PATH
end
set -gx PATH $_OLD_VIRTUAL_PATH
set -e _OLD_VIRTUAL_PATH
end

if test -n "$_OLD_VIRTUAL_PYTHONHOME"
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
set -e _OLD_VIRTUAL_PYTHONHOME
end

if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
set -l fish_function_path

# Erase virtualenv's `fish_prompt` and restore the original.
functions -e fish_prompt
set -e _OLD_FISH_PROMPT_OVERRIDE
functions -c _old_fish_prompt fish_prompt
functions -e _old_fish_prompt
set -e _OLD_FISH_PROMPT_OVERRIDE
end

set -e VIRTUAL_ENV

if test "$argv[1]" != 'nondestructive'
# Self-destruct!
functions -e pydoc
if test "$argv[1]" != "nondestructive"
# Self destruct!
functions -e deactivate
functions -e _bashify_path
functions -e _fishify_path
end
end

# Unset irrelevant variables.
# unset irrelevant variables
deactivate nondestructive

set -gx VIRTUAL_ENV "/Users/caleb/Documents/GitHub/SMSorder"

# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
if test (echo $FISH_VERSION | tr "." "\n")[1] -lt 3
set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH)
else
set -gx _OLD_VIRTUAL_PATH $PATH
end
set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/bin" $PATH

# Unset `$PYTHONHOME` if set.
# unset PYTHONHOME if set
if set -q PYTHONHOME
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
set -e PYTHONHOME
end

function pydoc
python -m pydoc $argv
end

if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
# fish uses a function instead of an env var to generate the prompt.

# save the current fish_prompt function as the function _old_fish_prompt
functions -c fish_prompt _old_fish_prompt

# with the original prompt function renamed, we can override with our own.
function fish_prompt
# Save the current $status, for fish_prompts that display it.
# Save the return status of the last command
set -l old_status $status

# Prompt override provided?
# If not, just prepend the environment name.
if test -n ""
printf '%s%s' "" (set_color normal)
# Prompt override?
if test -n "(SMSorder) "
printf "%s%s" "(SMSorder) " (set_color normal)
else
printf '%s(%s) ' (set_color normal) (basename "$VIRTUAL_ENV")
# ...Otherwise, prepend env
set -l _checkbase (basename "$VIRTUAL_ENV")
if test $_checkbase = "__"
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal)
else
printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal)
end
end

# Restore the original $status
echo "exit $old_status" | source
# Restore the return status of the previous command.
echo "exit $old_status" | .
_old_fish_prompt
end

Expand Down
Loading