mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-09 03:08:45 -05:00
Update Copyright to 2020 everywhere, and assign to Micah Lee, et al. instead of just Micah Lee
This commit is contained in:
parent
dc6cefd7ce
commit
4c4323a772
2
LICENSE
2
LICENSE
@ -1,7 +1,7 @@
|
|||||||
(Note: Third-party licenses can be found under install/licenses/.)
|
(Note: Third-party licenses can be found under install/licenses/.)
|
||||||
|
|
||||||
OnionShare
|
OnionShare
|
||||||
Copyright © 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 3, 29 June 2007
|
Version 3, 29 June 2007
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -21,8 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
# Load onionshare module and resources from the source code tree
|
# Load onionshare module and resources from the source code tree
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
sys.onionshare_dev_mode = True
|
sys.onionshare_dev_mode = True
|
||||||
|
|
||||||
import onionshare
|
import onionshare
|
||||||
|
|
||||||
onionshare.main()
|
onionshare.main()
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -21,8 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
# Load onionshare module and resources from the source code tree
|
# Load onionshare module and resources from the source code tree
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
sys.onionshare_dev_mode = True
|
sys.onionshare_dev_mode = True
|
||||||
|
|
||||||
import onionshare_gui
|
import onionshare_gui
|
||||||
|
|
||||||
onionshare_gui.main()
|
onionshare_gui.main()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Copyright 2018 Micah Lee <micah@micahflee.com> -->
|
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>org.onionshare.OnionShare</id>
|
<id>org.onionshare.OnionShare</id>
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -19,4 +19,5 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
import onionshare
|
import onionshare
|
||||||
|
|
||||||
onionshare.main()
|
onionshare.main()
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -19,4 +19,5 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
import onionshare_gui
|
import onionshare_gui
|
||||||
|
|
||||||
onionshare_gui.main()
|
onionshare_gui.main()
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -22,16 +22,18 @@ import sys, os, platform
|
|||||||
|
|
||||||
# In macOS, allow both CLI and GUI depending on the filename of the binary
|
# In macOS, allow both CLI and GUI depending on the filename of the binary
|
||||||
# being executed
|
# being executed
|
||||||
if platform.system() == 'Darwin':
|
if platform.system() == "Darwin":
|
||||||
# If the binary being executed is called 'onionshare', use CLI
|
# If the binary being executed is called 'onionshare', use CLI
|
||||||
basename = os.path.basename(sys.argv[0])
|
basename = os.path.basename(sys.argv[0])
|
||||||
if basename == 'onionshare':
|
if basename == "onionshare":
|
||||||
import onionshare
|
import onionshare
|
||||||
|
|
||||||
onionshare.main()
|
onionshare.main()
|
||||||
|
|
||||||
# Otherwise, use GUI
|
# Otherwise, use GUI
|
||||||
else:
|
else:
|
||||||
import onionshare_gui
|
import onionshare_gui
|
||||||
|
|
||||||
onionshare_gui.main()
|
onionshare_gui.main()
|
||||||
|
|
||||||
# Unfortunately this trick won't work in Windows because I want to set
|
# Unfortunately this trick won't work in Windows because I want to set
|
||||||
@ -41,4 +43,5 @@ if platform.system() == 'Darwin':
|
|||||||
# https://pyinstaller.readthedocs.io/en/stable/spec-files.html#multipackage-bundles
|
# https://pyinstaller.readthedocs.io/en/stable/spec-files.html#multipackage-bundles
|
||||||
else:
|
else:
|
||||||
import onionshare_gui
|
import onionshare_gui
|
||||||
|
|
||||||
onionshare_gui.main()
|
onionshare_gui.main()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -46,25 +46,49 @@ def main(cwd=None):
|
|||||||
|
|
||||||
# Display OnionShare banner
|
# Display OnionShare banner
|
||||||
print(f"OnionShare {common.version} | https://onionshare.org/")
|
print(f"OnionShare {common.version} | https://onionshare.org/")
|
||||||
reset='\033[0m'
|
reset = "\033[0m"
|
||||||
purple='\33[95m'
|
purple = "\33[95m"
|
||||||
print(purple)
|
print(purple)
|
||||||
print(" @@@@@@@@@ ")
|
print(" @@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ___ _ ")
|
print(
|
||||||
print(" @@@@@@ @@@@@@@@@@@@@ / _ \ (_) ")
|
" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ___ _ "
|
||||||
print(" @@@@ @ @@@@@@@@@@@ | | | |_ __ _ ___ _ __ ")
|
)
|
||||||
print(" @@@@@@@@ @@@@@@@@@@ | | | | '_ \| |/ _ \| '_ \ ")
|
print(
|
||||||
print(" @@@@@@@@@@@@ @@@@@@@@@@ \ \_/ / | | | | (_) | | | | ")
|
" @@@@@@ @@@@@@@@@@@@@ / _ \ (_) "
|
||||||
print(" @@@@@@@@@@@@@@@@ @@@@@@@@@ \___/|_| |_|_|\___/|_| |_| ")
|
)
|
||||||
print(" @@@@@@@@@ @@@@@@@@@@@@@@@@ _____ _ ")
|
print(
|
||||||
print(" @@@@@@@@@@ @@@@@@@@@@@@ / ___| | ")
|
" @@@@ @ @@@@@@@@@@@ | | | |_ __ _ ___ _ __ "
|
||||||
print(" @@@@@@@@@@ @@@@@@@@ \ `--.| |__ __ _ _ __ ___ ")
|
)
|
||||||
print(" @@@@@@@@@@@ @ @@@@ `--. \ '_ \ / _` | '__/ _ \\")
|
print(
|
||||||
print(" @@@@@@@@@@@@@ @@@@@@ /\__/ / | | | (_| | | | __/")
|
" @@@@@@@@ @@@@@@@@@@ | | | | '_ \| |/ _ \| '_ \ "
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ \____/|_| |_|\__,_|_| \___|")
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@@@ @@@@@@@@@@ \ \_/ / | | | | (_) | | | | "
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@@@@@@@ @@@@@@@@@ \___/|_| |_|_|\___/|_| |_| "
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@ @@@@@@@@@@@@@@@@ _____ _ "
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@ @@@@@@@@@@@@ / ___| | "
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@ @@@@@@@@ \ `--.| |__ __ _ _ __ ___ "
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@@ @ @@@@ `--. \ '_ \ / _` | '__/ _ \\"
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@@@@ @@@@@@ /\__/ / | | | (_| | | | __/"
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ \____/|_| |_|\__,_|_| \___|"
|
||||||
|
)
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
|
||||||
print(" @@@@@@@@@@@@@@@@@@@ ")
|
print(" @@@@@@@@@@@@@@@@@@@ ")
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Request,
|
Request,
|
||||||
request,
|
request,
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import json
|
import json
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
import hmac
|
import hmac
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
import sys
|
import sys
|
||||||
import platform
|
import platform
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,4 +17,5 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .tab import Tab
|
from .tab import Tab
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from PyQt5 import QtCore, QtWidgets
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
import textwrap
|
import textwrap
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import queue
|
import queue
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui, QtSvg
|
from PyQt5 import QtCore, QtWidgets, QtGui, QtSvg
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,6 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
import datetime, time, socket, re, platform
|
import datetime, time, socket, re, platform
|
||||||
import socks
|
import socks
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -17,10 +17,12 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
import qrcode
|
import qrcode
|
||||||
|
|
||||||
|
|
||||||
class Alert(QtWidgets.QMessageBox):
|
class Alert(QtWidgets.QMessageBox):
|
||||||
"""
|
"""
|
||||||
An alert box dialog.
|
An alert box dialog.
|
||||||
@ -102,8 +104,7 @@ class Image(qrcode.image.base.BaseImage):
|
|||||||
self.width = width
|
self.width = width
|
||||||
self.box_size = box_size
|
self.box_size = box_size
|
||||||
size = (width + border * 2) * box_size
|
size = (width + border * 2) * box_size
|
||||||
self._image = QtGui.QImage(
|
self._image = QtGui.QImage(size, size, QtGui.QImage.Format_RGB16)
|
||||||
size, size, QtGui.QImage.Format_RGB16)
|
|
||||||
self._image.fill(QtCore.Qt.white)
|
self._image.fill(QtCore.Qt.white)
|
||||||
|
|
||||||
def pixmap(self):
|
def pixmap(self):
|
||||||
@ -114,8 +115,10 @@ class Image(qrcode.image.base.BaseImage):
|
|||||||
painter.fillRect(
|
painter.fillRect(
|
||||||
(col + self.border) * self.box_size,
|
(col + self.border) * self.box_size,
|
||||||
(row + self.border) * self.box_size,
|
(row + self.border) * self.box_size,
|
||||||
self.box_size, self.box_size,
|
self.box_size,
|
||||||
QtCore.Qt.black)
|
self.box_size,
|
||||||
|
QtCore.Qt.black,
|
||||||
|
)
|
||||||
|
|
||||||
def save(self, stream, kind=None):
|
def save(self, stream, kind=None):
|
||||||
pass
|
pass
|
||||||
@ -135,8 +138,7 @@ class QRCodeDialog(QtWidgets.QDialog):
|
|||||||
self.common.log("QrCode", "__init__")
|
self.common.log("QrCode", "__init__")
|
||||||
|
|
||||||
self.qr_label = QtWidgets.QLabel(self)
|
self.qr_label = QtWidgets.QLabel(self)
|
||||||
self.qr_label.setPixmap(
|
self.qr_label.setPixmap(qrcode.make(self.text, image_factory=Image).pixmap())
|
||||||
qrcode.make(self.text, image_factory=Image).pixmap())
|
|
||||||
|
|
||||||
self.qr_label_description = QtWidgets.QLabel(self)
|
self.qr_label_description = QtWidgets.QLabel(self)
|
||||||
self.qr_label_description.setText(strings._("gui_qr_code_description"))
|
self.qr_label_description.setText(strings._("gui_qr_code_description"))
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
"""
|
|
||||||
OnionShare | https://onionshare.org/
|
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
"""
|
|
||||||
OnionShare | https://onionshare.org/
|
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import inspect
|
import inspect
|
||||||
import io
|
import io
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
"""
|
|
||||||
OnionShare | https://onionshare.org/
|
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -1,23 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
|
||||||
OnionShare | https://onionshare.org/
|
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import types
|
import types
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
"""
|
|
||||||
OnionShare | https://onionshare.org/
|
|
||||||
|
|
||||||
Copyright (C) 2014-2018 Micah Lee <micah@micahflee.com>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import inspect
|
import inspect
|
||||||
import io
|
import io
|
||||||
@ -110,7 +91,9 @@ class TestWeb:
|
|||||||
|
|
||||||
assert web.running == False
|
assert web.running == False
|
||||||
|
|
||||||
def test_share_mode_autostop_sharing_off(self, temp_dir, common_obj, temp_file_1024):
|
def test_share_mode_autostop_sharing_off(
|
||||||
|
self, temp_dir, common_obj, temp_file_1024
|
||||||
|
):
|
||||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||||
web.settings.set("share", "autostop_sharing", False)
|
web.settings.set("share", "autostop_sharing", False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user