Skip to content
Open

dev #86

Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
curl -sSL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get update --allow-releaseinfo-change-label
sudo apt-get install -y google-chrome-stable
sudo apt install socat

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Run PHPMD
run: vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml
- name: Run PHP_CodeSniffer
run: vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/
run: vendor/bin/phpcs --ignore=tests/Unit/assets --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/

- name: Install Prism
run: npm install -g @stoplight/prism-cli
Expand Down Expand Up @@ -145,6 +145,9 @@ jobs:
- name: Run tests with phpunit
run: vendor/bin/phpunit tests

- name: Run tests with vitest
run: node node_modules/vitest/vitest.mjs --run

- name: Upload Panther screenshots
if: failure()
uses: actions/upload-artifact@v4
Expand Down
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ echo "📏 Running PHPMD..."
php vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml || exit 1

echo "🧹 Running PHPCS..."
php vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/ || exit 1
php vendor/bin/phpcs \
--standard=vendor/phplist/core/config/PhpCodeSniffer/ \
--ignore=tests/Unit/assets \
src/ tests/ || exit 1
9 changes: 9 additions & 0 deletions assets/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import CampaignEditView from '../vue/views/CampaignEditView.vue'
import TemplatesView from '../vue/views/TemplatesView.vue'
import TemplateEditView from '../vue/views/TemplateEditView.vue'
import BouncesView from '../vue/views/BouncesView.vue'
import AnalyticsView from '../vue/views/AnalyticsView.vue'
import PublicPagesView from '../vue/views/PublicPagesView.vue'
import PublicPageEditView from '../vue/views/PublicPageEditView.vue'
import SettingsView from '../vue/views/SettingsView.vue'

export const router = createRouter({
history: createWebHistory(),
Expand All @@ -23,6 +27,11 @@ export const router = createRouter({
{ path: '/campaigns/:campaignId/edit', name: 'campaign-edit', component: CampaignEditView, meta: { title: 'Edit Campaign' } },
{ path: '/lists/:listId/subscribers', name: 'list-subscribers', component: ListSubscribersView, meta: { title: 'List Subscribers' } },
{ path: '/bounces', name: 'bounces', component: BouncesView, meta: { title: 'Bounces' } },
{ path: '/analytics', name: 'analytics', component: AnalyticsView, meta: { title: 'Analytics' } },
{ path: '/public', name: 'public-pages', component: PublicPagesView, meta: { title: 'Public Pages' } },
{ path: '/public/create', name: 'public-page-create', component: PublicPageEditView, meta: { title: 'Create Public Page' } },
{ path: '/public/:pageId/edit', name: 'public-page-edit', component: PublicPageEditView, meta: { title: 'Edit Public Page' } },
{ path: '/settings', name: 'settings', component: SettingsView, meta: { title: 'Settings' } },
{ path: '/:pathMatch(.*)*', redirect: '/' },
],
});
Expand Down
33 changes: 33 additions & 0 deletions assets/styles/color.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
:root {
--page-bg: #e5e7eb;
--primary-text: #374151;

--header-bg: #1e1b4b;
--logo-color: #c7d2fe;

--topbar-gradient-start: #312e81;
--topbar-gradient-middle: #3730a3;
--topbar-gradient-end: #4338ca;
--topbar-border: #4f46e5;

--card-bg: #ffffff;
--card-border: #e5e7eb;

--input-bg: #ffffff;
--input-border: #d1d5db;

--field-frame-bg: #f9fafb;
--field-frame-border: #e5e7eb;

--required-color: #dc2626;

--error-bg: #fef2f2;
--error-border: #fca5a5;
--error-text: #dc2626;

--success-bg: #f0fdf4;
--success-border: #86efac;
--success-text: #16a34a;

--footer-border: #e5e7eb;
}
Loading
Loading