Skip to content

Commit

Permalink
Release 0.8.7-alpha (#37)
Browse files Browse the repository at this point in the history
* Updated Copyright information and fixed small bugs

* Updated copyright information

* URL paste via button now possible

* UI changes in paste button added

* Added pause icon

* Added two comment modes: Only-once and On-Repeat; Updated ReadMe file

* Updated electron to stable version

* Fixed security issue in npm package, small change in internet connectivity check

* Paste button can now be used more often

* IAC tested with hashtags and mentions

* Small cosmetic features & file change

* Updated Puppeteer, changed internal code structure, small changes in comments.txt file (Ignore from ! to _), added first layer of "Stop" Button function (#36)

* Updated Puppeteer, changed internal code structure, small changes in comments.txt file (Ignore from ! to _)

* Added first layer of "Stop" Button function

* Removed old js file

* URL now opens in standard browser

* Fixed Info Window position

* Small UI changes

* Small UI changes in dropdown menu

* Code clean up for new release
  • Loading branch information
JueK3y-Prv authored Jul 2, 2024
1 parent 3e07178 commit ba1cf7c
Show file tree
Hide file tree
Showing 38 changed files with 5,293 additions and 1,692 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/public/dist/
/public/node_modules/
/private/*
/private/*
public/package-lock.json
25 changes: 2 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,12 @@ _¹ Don't worry, your data is safe. They are not uploaded anywhere, but encrypte

## Bugs, missing Features & co.

- [🚀 Here](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Enhancement%2C+New+request&template=Feature_Request.yml) you can submit suggestions for improvements or new features.
- 🚀 [Here](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Enhancement%2C+New+request&template=Feature_Request.yml) you can submit suggestions for improvements or new features.
- 📚 If you notice translation errors while using IAC 2.0, you can [report them here](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Translation%2C+New+request&template=Translation_Error.yml).
- 🐛 If you notice any problems or bugs (for example, display errors) during use, you can [report them here](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Bug%2C+New+request&template=Bug_Report.yml).

- Also, for any other questions or problems, you can check out [the wiki](https://github.com/JueK3y/Instagram-automated-commenting/wiki).


## Technical data
The following dependencies were used to develop IAC 2.0 (Last checked: 25.07.2022):

- electron 15.5.5
- electron-log 4.4.6
- electron-store 8.0.1
- electron-builder 5.0.5
- electron-window-state 5.0.3
- is-online 9.0.1
- node-keytar 7.9.0
- network-speed 2.1.1
- node-notifier 10.0.1
- puppeteer 15.5.0
- puppeteer-extra 3.3.4
- puppeteer-extra-plugin-stealth 2.11.0

You can see all used dependencies [here](https://github.com/JueK3y/Instagram-automated-commenting/network/dependencies).

_It may happen that older versions are specified here than are actually used._

<br>

## Leave a ⭐
Expand Down Expand Up @@ -124,4 +103,4 @@ _The program has been carefully developed and tested. However, damage cannot be
###### _DO NOT modify and reupload the program.<br>DO NOT indicate used program sections as your own.<br>Any copyright / EULA violation can and will be legally punished._


_©2020 - 2022 by [JueK3y](https://juek3y.com)_
_©2020 - 2024 by [JueK3y](https://juek3y.com)_
27 changes: 3 additions & 24 deletions README_DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,15 @@ _¹ Keine Angst, deine Daten sind hier sicher. Sie werden nirgends hochgeladen u

## Probleme, fehlende Features & co.

- [🚀 Hier](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Enhancement%2C+New+request&template=Feature_Request.yml) kannst du Vorschläge für Verbesserungen oder neue Funktionen einreichen.
- 🚀 [Hier](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Enhancement%2C+New+request&template=Feature_Request.yml) kannst du Vorschläge für Verbesserungen oder neue Funktionen einreichen.
- 📚 Wenn dir bei der Verwendung von IAC 2.0 Übersetzungsfehler auffallen, kannst du [diese hier melden](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Translation%2C+New+request&template=Translation_Error.yml).
- 🐛 Falls du während der Nutzung auf Probleme oder Fehler (z.B. Anzeigefehler) stößt, dann kannst du [sie hier melden](https://github.com/JueK3y/Instagram-automated-commenting/issues/new?assignees=JueK3y-Prv&labels=Bug%2C+New+request&template=Bug_Report.yml).

- Bei anderen Fragen oder Problemen kannst du auch [im Wiki](https://github.com/JueK3y/Instagram-automated-commenting/wiki) nachsehen.


## Technische Daten
Folgende Dependencies wurden bei der Entwicklung von IAC 2.0 verwendet (Stand 25.07.2022):

- electron 15.5.5
- electron-log 4.4.6
- electron-store 8.0.1
- electron-builder 5.0.5
- electron-window-state 5.0.3
- is-online 9.0.1
- node-keytar 7.9.0
- network-speed 2.1.1
- node-notifier 10.0.1
- puppeteer 15.5.0
- puppeteer-extra 3.3.4
- puppeteer-extra-plugin-stealth 2.11.0

Die vollständige Liste kannst du dir [hier](https://github.com/JueK3y/Instagram-automated-commenting/network/dependencies) angucken.

_Es kann vorkommmen, dass hier ältere Versionen angegeben sind als eigentlich benutzt werden._

<br>

## Hinterlasse ein ⭐
## Lasse ein ⭐ da
Wenn dir dieses Projekt gefällt, lass einen Stern da :)
<br>Das würde mir sehr viel bedeuten.

Expand All @@ -123,4 +102,4 @@ _Das Programm ist sorgfältig entwickelt und getestet worden. Dennoch können Sc
###### _Verändern Sie das Programm NICHT und laden Sie es nicht erneut hoch.<br>Geben Sie verwendete Programmteile NICHT als Ihre eigenen an.<br>Jede Verletzung des Urheberrechts / der EULA kann und wird rechtlich geahndet._


_©2020 - 2022 by [JueK3y](https://juek3y.com)_
_©2020 - 2024 by [JueK3y](https://juek3y.com)_
30 changes: 21 additions & 9 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<script src="src/js/userPassword.js"></script>
<script src="src/js/lib/jquery.min.js"></script>
<script defer src="src/js/notification.js"></script>
<script defer src="src/js/wifiSpeed.js"></script>
<script defer src="src/js/wifiSpeedClipboard.js"></script>
<script defer src="src/js/comments.js"></script>
<script defer src="src/js/userData.js"></script>
<script defer src="src/js/mainApp.js"></script>
<script defer src="src/js/banner.js"></script>
Expand Down Expand Up @@ -201,7 +202,7 @@
<img id="set-note-on" src="src/img/icons/light/alert.svg" alt="Icon of a bell">
<img id="set-note-urgent" src="src/img/icons/light/alert-urgent.svg" alt="Icon of a bell">
<img id="set-note-off" src="src/img/icons/light/alert-off.svg" alt="Icon of a bell">
<p id="set-note-text">Benachrichtungen: <span id="notification-text">Alle</i></p>
<p id="set-note-text">Benachrichtungen: <span id="notification-text">Alle</span></p>
</a>
</li>
<li id="update">
Expand Down Expand Up @@ -236,6 +237,13 @@
<p id="set-dow-text-failed">Fehlgeschlagen</p>
</a>
</li>
<li id="comment-mode">
<a>
<img id="mod-comm-once" src="src/img/icons/light/comment-once.svg" alt="Icon of the comment mode">
<img id="mod-comm-loop" src="src/img/icons/light/comment-loop.svg" alt="Icon of the comment mode"> <!-- TODO: Better icon needed -->
<p id="mod-comm-text">Modus: <span id="comm-text">Einmalig</span></p>
</a>
</li>
<li id="comment-settings">
<a>
<img id="set-comm" src="src/img/icons/light/comment-settings.svg" alt="Icon of the comment settings">
Expand All @@ -253,7 +261,7 @@
<svg id="set-dev" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="svg-path" d="M8.06562 18.9434L14.5656 4.44339C14.7351 4.06542 15.1788 3.89637 15.5568 4.0658C15.9033 4.22112 16.0742 4.60695 15.9698 4.96131L15.9344 5.05698L9.43438 19.557C9.26495 19.935 8.82118 20.104 8.44321 19.9346C8.09673 19.7793 7.92581 19.3934 8.03024 19.0391L8.06562 18.9434L14.5656 4.44339L8.06562 18.9434ZM2.21967 11.4699L6.46967 7.21986C6.76256 6.92696 7.23744 6.92696 7.53033 7.21986C7.7966 7.48612 7.8208 7.90279 7.60295 8.1964L7.53033 8.28052L3.81066 12.0002L7.53033 15.7199C7.82322 16.0127 7.82322 16.4876 7.53033 16.7805C7.26406 17.0468 6.8474 17.071 6.55379 16.8531L6.46967 16.7805L2.21967 12.5305C1.9534 12.2642 1.9292 11.8476 2.14705 11.554L2.21967 11.4699L6.46967 7.21986L2.21967 11.4699ZM16.4697 7.21986C16.7359 6.95359 17.1526 6.92938 17.4462 7.14724L17.5303 7.21986L21.7803 11.4699C22.0466 11.7361 22.0708 12.1528 21.8529 12.4464L21.7803 12.5305L17.5303 16.7805C17.2374 17.0734 16.7626 17.0734 16.4697 16.7805C16.2034 16.5142 16.1792 16.0976 16.3971 15.804L16.4697 15.7199L20.1893 12.0002L16.4697 8.28052C16.1768 7.98762 16.1768 7.51275 16.4697 7.21986Z"/>
</svg>
<p id="set-dev-text">Entwickler-Einstellungen</p>
<p id="set-dev-text">Entwickler-Modus</p>
</a>
</li>
<li id="more-settings">
Expand All @@ -278,6 +286,10 @@ <h2 class="big-title">Instagram Post URL
</label>
<input type="url" title="" class="big-form" id="url-input" placeholder="https://www.instagram.com/p/soMepiCTUrE" minlength="16" autocomplete="off" required>
<button type="button" id="clearButton" title="Eingabe löschen" tabindex="-1"><img src="src/img/icons/light/clear.svg" class="clearIcon" alt="The icon of the clear button"></button>
<button type="button" id="pasteButton" title="URL einfügen" tabindex="-1">
<img src="src/img/icons/light/paste.svg" id="pasteIconFocus" class="pasteIcon" alt="The icon of the paste button">
<img src="src/img/icons/light/paste-grey.svg" id="pasteIconNoFocus" class="pasteIcon" alt="The icon of the paste button">
</button>

</div>
<div id="login-data">
Expand All @@ -300,9 +312,9 @@ <h2 class="big-title">Benutzername
</button>
</div>
<div id="profileDropdownContent">
<a class="uid-profile-1">Profil 1</a>
<a class="uid-profile-2">Profil 2</a>
<a class="uid-profile-3">Profil 3</a>
<a id="profile-1-dropdown" class="uid-profile-1">Profil 1</a>
<a id="profile-2-dropdown" class="uid-profile-2">Profil 2</a>
<a id="profile-3-dropdown" class="uid-profile-3">Profil 3</a>
</div>
</div>

Expand Down Expand Up @@ -402,7 +414,7 @@ <h2 class="big-title">Passwort
<div id="error-close-wifi" class="banner-close"><img class="clearIcon" src="src/img/icons/light/clear.svg" alt="Close icon for error banner"></div>
</div>
</div>
<div id="small-window">
<div id="small-window-big">
<div id="small-window-content">
<div id="small-window-header">
<div id="small-window-icon" class="no-select"><img id="small-window-icon-img"></div>
Expand All @@ -422,7 +434,7 @@ <h2 class="big-title">Passwort
<p>Version: <span id="currentVersion">x.x.x</span></p>
<p id="verType">Developer release</p>
<p>Work in Progress</p>
<p>Copyright © 2021 - 2023 by JueK3y</p>
<p>Copyright © 2020 - 2024 by JueK3y</p>
<!-- TODO: Automate current year and version -!-->
</div>
<div class="small-window-button" id="s-w-b-version">
Expand All @@ -444,7 +456,7 @@ <h2 class="big-title">Passwort

</div>
</div>
<p id="legal-note" class="no-select">Work in progress &copy; 2021 - 2023 by <a href="https://www.juek3y.com/">JueK3y</a></p>
<p id="legal-note" class="no-select">Work in progress &copy; 2020 - 2024 by <a href="https://www.juek3y.com/" target="_blank">JueK3y</a></p>
<div class="small-cursor"></div>
</body>
</html>
15 changes: 10 additions & 5 deletions public/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,16 @@ ipc.on('changeWinIcon', () => {

////// Open comment file
function getCommentsPath() {
log.info('Getting comments file path')
ipc.send('checkFile', ['dirLoc', 'fileLoc'])
ipc.on('getFilePath', (evt, args) => {
returnCommentPath(args[0], args[1])
})
try {
log.info('Getting comments file path')
ipc.send('checkFile', ['dirLoc', 'fileLoc'])
ipc.on('getFilePath', (evt, args) => {
returnCommentPath(args[0], args[1])
})
}
catch (e) {
log.info(e)
}
}

function openCommentFile(fileLocation) {
Expand Down
8 changes: 4 additions & 4 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ const createWindow = () => {
}
})

mainWindow.webContents.on('new-window', function (e, url) {
e.preventDefault()
require('electron').shell.openExternal(url)
})
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);
return { action: 'deny' };
});

mainWindow.on('blur', () => {
mainWindow.webContents.send('blurPw')
Expand Down
Loading

0 comments on commit ba1cf7c

Please sign in to comment.