Skip to content

Commit 73d7568

Browse files
merge: concluir parte 2 e integrações
2 parents 2e723db + 785eccc commit 73d7568

51 files changed

Lines changed: 2196 additions & 972 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ dist-ssr
3737
# Local documentation drafts
3838
docs/
3939
doc/
40+
41+
# Test results
42+
test-results/
43+
playwright-report/
44+
blob-report/
45+
playwright/.cache/

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@
77
<meta name="description" content="Gerenciador de colaboradores Flugo - Performance e Resiliência Offline" />
88
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
99
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
10+
<link rel="alternate icon" type="image/png" href="/pwa-192x192.png" />
1011
<title>Flugo Staff Manager</title>
1112
</head>
1213
<body>
1314
<div id="root"></div>
15+
<script>
16+
// Single Page Apps for GitHub Pages
17+
// https://github.com/rafgraph/spa-github-pages
18+
(function(l) {
19+
if (l.search[1] === '/' ) {
20+
var decoded = l.search.slice(1).split('&').map(function(s) {
21+
return s.replace(/~and~/g, '&')
22+
}).join('?');
23+
window.history.replaceState(null, null,
24+
l.pathname.slice(0, -1) + decoded + l.hash
25+
);
26+
}
27+
}(window.location))
28+
</script>
1429
<script type="module" src="/src/main.tsx"></script>
1530
</body>
1631
</html>

package-lock.json

Lines changed: 62 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"globals": "^16.5.0",
4949
"jsdom": "^28.1.0",
5050
"typescript": "~5.9.3",
51-
"typescript-eslint": "^8.48.0",
51+
"typescript-eslint": "^8.57.0",
5252
"vite": "^7.3.1",
5353
"vite-plugin-pwa": "^1.2.0",
5454
"vitest": "^4.0.18"

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
webServer: {
2828
command: 'npm run build && npm run preview',
2929
port: 4173,
30-
reuseExistingServer: !process.env.CI,
30+
reuseExistingServer: false,
3131
timeout: 120000,
3232
},
3333
}),

public/apple-touch-icon.png

616 Bytes
Loading

public/favicon.ico

421 Bytes
Binary file not shown.

public/maskable-icon.png

2.13 KB
Loading

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ import MenuIcon from '@mui/icons-material/Menu'
55
import { Sidebar } from '@/components/sidebar'
66
import { Header } from '@/components/header'
77
import { Breadcrumb } from '@/components/breadcrumb'
8+
import { useSyncPending } from '@/features/staff/hooks'
89

910
function App() {
1011
const [mobileOpen, setMobileOpen] = useState(false)
1112
const theme = useTheme()
1213
const isMobile = useMediaQuery(theme.breakpoints.down('md'))
14+
15+
// Ativa a sincronização em segundo plano
16+
useSyncPending()
1317

1418
const handleDrawerToggle = () => {
1519
setMobileOpen(!mobileOpen)

0 commit comments

Comments
 (0)