Skip to content

Commit

Permalink
Add GPLv3 License
Browse files Browse the repository at this point in the history
  • Loading branch information
piazzatron committed Jun 12, 2024
1 parent 3f83501 commit 6b9c674
Show file tree
Hide file tree
Showing 17 changed files with 927 additions and 51 deletions.
621 changes: 621 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

import sys
import os

Expand Down
19 changes: 19 additions & 0 deletions env.py
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

environment = "DEV"
19 changes: 19 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/bin/bash

# Copyright (C) 2024 Michael Piazza
#
# This file is part of Smart Notes.
#
# Smart Notes 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.
#
# Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.



build () {
echo "Building..."
rm -rf dist
Expand Down
19 changes: 19 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import Dict, TypedDict, Literal, Any, Union
from aqt import mw, addons

Expand Down
19 changes: 19 additions & 0 deletions src/hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

"""
Setup the hooks for the Anki plugin
"""
Expand Down
19 changes: 19 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from .config import Config

from .open_ai_client import OpenAIClient
Expand Down
19 changes: 19 additions & 0 deletions src/open_ai_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from .config import Config

import aiohttp
Expand Down
19 changes: 19 additions & 0 deletions src/processor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

import aiohttp
from aqt import editor
from typing import Sequence, Callable, Union, List, Tuple
Expand Down
19 changes: 19 additions & 0 deletions src/prompts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

"""Helpful functions for working with prompts and cards"""

from .config import config
Expand Down
19 changes: 19 additions & 0 deletions src/ui/addon_options_dialog.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from aqt import (
QCheckBox,
QTabWidget,
Expand Down
19 changes: 19 additions & 0 deletions src/ui/prompt_dialog.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import Callable, List, Union
from ..processor import Processor

Expand Down
19 changes: 19 additions & 0 deletions src/ui/rate_dialog.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from aqt import QDialog, QLabel, QVBoxLayout, Qt, QFont, QDialogButtonBox


Expand Down
19 changes: 19 additions & 0 deletions src/ui/sparkle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from aqt import mw


Expand Down
19 changes: 19 additions & 0 deletions src/ui/ui_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import Union
from aqt import QPushButton, QMessageBox

Expand Down
21 changes: 20 additions & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
"""
Copyright (C) 2024 Michael Piazza
This file is part of Smart Notes.
Smart Notes 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.
Smart Notes 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 Smart Notes. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import Callable, Dict, Any, Union
from aqt import mw, QDialog, QLabel
from aqt import mw
from aqt.operations import QueryOp
from .config import config

Expand Down
Loading

0 comments on commit 6b9c674

Please sign in to comment.